Skip to content

Commit

Permalink
Duplication update (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakazaba authored Dec 16, 2024
1 parent 1486037 commit 85c2f6b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/creator/actions/node.d
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,19 @@ Node recursiveDuplicate(Node n){
x = p;
} else if (cast(Composite) n) {
//Do Composites hold any unique data?
Composite c = cast(Composite)n;
Composite p = new Composite(null);
x=p;
p.tint = c.tint;
p.screenTint = c.screenTint;
p.blendingMode = c.blendingMode;
p.opacity = c.opacity;
p.threshold = c.threshold;
p.masks = c.masks;
x = p;
} else if (cast(MeshGroup) n) {
//Do meshgroups hold into any unique data?
MeshGroup p = new MeshGroup(null);
x=p;
x = p;
} else if (cast(SimplePhysics) n) {
SimplePhysics c = cast(SimplePhysics) n;
SimplePhysics p = new SimplePhysics(null);
Expand All @@ -368,6 +375,7 @@ Node recursiveDuplicate(Node n){
p.lengthDamping = c.lengthDamping;
p.outputScale = c.outputScale;
p.output = c.output;
x = p;
} else if (cast(Camera) n) {
//Lets not duplicate cameras for now
return null;
Expand Down

0 comments on commit 85c2f6b

Please sign in to comment.