]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove the scene type property from Blender exporter
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 09:10:20 +0000 (12:10 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 16:03:00 +0000 (19:03 +0300)
It's better managed automatically based on object transparency and other
factors.

blender/io_mspgl/export_scene.py
blender/io_mspgl/properties.py
blender/io_mspgl/scene.py

index 45a681c6e888d63e58b615977af599bcc1758987..0fb12dd37de74268723e51ce077370585d19055a 100644 (file)
@@ -37,7 +37,7 @@ class SceneExporter:
                from .datafile import Resource, Statement, Token
                scene_res = Resource(scene.name+".scene", "scene")
 
-               scene_res.statements.append(Statement("type", Token(scene.scene_type.lower())))
+               scene_res.statements.append(Statement("type", Token("simple")))
 
                for i in scene.instances:
                        obj_res = resources[i.prototype+".object"]
index 6d847012fc96f41bff69cbfa1112c89ff4021752..7b67955a1e2e84c159e2b2211e89f2f69c421bf6 100644 (file)
@@ -10,7 +10,6 @@ class MspGLSceneProperties(bpy.types.Panel):
        def draw(self, context):
                scene = context.scene
 
-               self.layout.prop(scene, "scene_type")
                self.layout.prop(scene, "export_disposition")
 
 class MspGLMeshProperties(bpy.types.Panel):
@@ -197,10 +196,6 @@ def register_properties():
        for c in classes:
                bpy.utils.register_class(c)
 
-       bpy.types.Scene.scene_type = bpy.props.EnumProperty(name="Scene type", description="Type of scene to use for exporting", default="SIMPLE",
-               items=(("SIMPLE", "Simple", "Objects are rendered in no specific order"),
-                       ("ORDERED", "Ordered", "Objects are rendered in order by their name"),
-                       ("ZSORTED", "Z-sorted", "Objects are rendered in order by their distance from the camera")))
        bpy.types.Scene.export_disposition = bpy.props.EnumProperty(name="Export disposition", description="What to do with this scene during project export", default="IGNORE",
                items=(("IGNORE", "Ignore", "The scene won't be exported"),
                        ("CONTENTS", "Contents only", "Objects in the scene will be exported, but not the scene itself"),
index c89aa3df2e3950476cebace4e765a498123ce752..28c30ad78b58a452309f9f24552edb6b56647ac2 100644 (file)
@@ -18,7 +18,6 @@ class Instance:
 class Scene:
        def __init__(self, scene, obj_filter=None):
                self.name = scene.name
-               self.scene_type = scene.scene_type
                self.export_disposition = scene.export_disposition
                self.background_set = None
                self.camera = scene.camera