roy's comment

This commit is contained in:
Kayla Man 2023-04-26 19:10:55 +08:00
parent 9d3b788fb4
commit cdf9a10aa1
4 changed files with 22 additions and 11 deletions

View file

@ -18,6 +18,7 @@ class CreateRedshiftProxy(plugin.MaxCreator):
instance_data,
pre_create_data) # type: CreatedInstance
container = rt.getNodeByName(instance.data.get("instance_node"))
for obj in sel_obj:
obj.parent = container
if self.selected_nodes:
sel_obj = list(self.selected_nodes)
for obj in sel_obj:
obj.parent = container