Skip to content

Commit

Permalink
Model: keep cdb props when changing model to prefab
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoVgr committed Dec 19, 2024
1 parent ec0c0ed commit f933ed9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hrt/prefab/Model.hx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class Model extends Object3D {
var toAdd = undo ? new hrt.prefab.Model(null, toRemove.shared) : new hrt.prefab.Reference(null, toRemove.shared);
toAdd.source = toAddPath;
toAdd.name = toRemove.name;
toAdd.props = toRemove.props;
toAdd.setTransform(toRemove.getTransform());
parent.children.insert(idx, toAdd);
@:bypassAccessor toAdd.parent = parent;
Expand Down

0 comments on commit f933ed9

Please sign in to comment.