Pass model to create_internal_objects not grid

这个提交包含在:
nmannall
2024-04-18 17:20:13 +01:00
父节点 33e44ab882
当前提交 2576f24241
共有 2 个文件被更改,包括 4 次插入2 次删除

查看文件

@@ -106,7 +106,7 @@ class Context:
if not model_config.reuse_geometry(): if not model_config.reuse_geometry():
scene = self._get_scene(model_num) scene = self._get_scene(model_num)
model = self._create_model() model = self._create_model()
scene.create_internal_objects(model.G) scene.create_internal_objects(model)
model.build() model.build()

查看文件

@@ -138,12 +138,14 @@ class Scene:
self.process_cmds(cmds_unique, G) self.process_cmds(cmds_unique, G)
def create_internal_objects(self, G): def create_internal_objects(self, model: Model):
"""Calls the UserObject.build() function in the correct way - API """Calls the UserObject.build() function in the correct way - API
presents the user with UserObjects in order to build the internal presents the user with UserObjects in order to build the internal
Rx(), Cylinder() etc... objects. Rx(), Cylinder() etc... objects.
""" """
G = model.G
# Create pre-defined (built-in) materials # Create pre-defined (built-in) materials
create_built_in_materials(G) create_built_in_materials(G)