mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 19:36:21 +00:00
Minor fix
This commit is contained in:
@@ -51,7 +51,7 @@ This scenario where there is pure IfcOpenShell never occurs with the BlenderBIM
|
|||||||
Add-on. Instead, stuff happens in Blender operators.
|
Add-on. Instead, stuff happens in Blender operators.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
:emphasize-lines: 5,7,8,10,13
|
:emphasize-lines: 6,7
|
||||||
|
|
||||||
class Foobar(bpy.types.Operator):
|
class Foobar(bpy.types.Operator):
|
||||||
bl_idname = "foobar"
|
bl_idname = "foobar"
|
||||||
@@ -63,7 +63,6 @@ Add-on. Instead, stuff happens in Blender operators.
|
|||||||
|
|
||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
ifcopenshell.api.run("foo.bar", IfcStore.get_file())
|
ifcopenshell.api.run("foo.bar", IfcStore.get_file())
|
||||||
context.scene.name = "Foobar"
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
When your operator manipulates (creates, removes, or edits) IFC data directly or
|
When your operator manipulates (creates, removes, or edits) IFC data directly or
|
||||||
|
|||||||
Reference in New Issue
Block a user