Correctly export logic nodes
This commit is contained in:
parent
3fe1d8fa3f
commit
6dbe92199f
|
@ -17,6 +17,8 @@ class TransformNode extends Node {
|
|||
var rot:Quat;
|
||||
var scale:Vec3;
|
||||
|
||||
static var temp = new Mat4();
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
|
||||
|
@ -40,8 +42,11 @@ class TransformNode extends Node {
|
|||
inputs[_scale].inputs[VectorNode._y].f,
|
||||
inputs[_scale].inputs[VectorNode._z].f);
|
||||
|
||||
rot.saveToMatrix(matrix);
|
||||
matrix.identity();
|
||||
matrix.scale(scale);
|
||||
rot.saveToMatrix(temp);
|
||||
matrix.mult(temp);
|
||||
//matrix.translate(pos.x, pos.y, pos.z);
|
||||
matrix._41 = pos.x;
|
||||
matrix._42 = pos.y;
|
||||
matrix._43 = pos.z;
|
||||
|
|
|
@ -286,8 +286,8 @@ def buildNodeTrees():
|
|||
|
||||
# Export node scripts
|
||||
for node_group in bpy.data.node_groups:
|
||||
#if type(node_group) == 'nodes.CGTree': # Build only cycles game trees
|
||||
buildNodeTree(node_group)
|
||||
if node_group.bl_idname == 'CGTreeType': # Build only cycles game trees
|
||||
buildNodeTree(node_group)
|
||||
|
||||
def buildNodeTree(node_group):
|
||||
rn = getRootNode(node_group)
|
||||
|
|
Loading…
Reference in a new issue