Fix [#36454] 'Tiles' settings in Render/Performance panel don't respect keyframes
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 19 Aug 2013 13:30:17 +0000 (13:30 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 19 Aug 2013 13:30:17 +0000 (13:30 +0000)
These are not animatable! Note this is the case of most (all?) render settings, maybe we should go over both Cycles and internal ones, there are still quite a bunch of them that are marked as animatable... :/

intern/cycles/blender/addon/properties.py
source/blender/makesrna/intern/rna_scene.c

index d34795c74ca86d02a3711d879426d21e1032b06d..5476f1b39e5bc82954dc0fcdcbe1544a7e8d7c36 100644 (file)
@@ -385,6 +385,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
                 description="Tile order for rendering",
                 items=enum_tile_order,
                 default='CENTER',
+                options=set(),  # Not animatable!
                 )
         cls.use_progressive_refine = BoolProperty(
                 name="Progressive Refine",
index 83dbd79024e246ecdab2451c3bb8056a6b2d97f6..1f7ddb9ab4dbed4df58c444975569db34eb5a85d 100644 (file)
@@ -4190,12 +4190,14 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
        
        prop = RNA_def_property(srna, "tile_x", PROP_INT, PROP_NONE);
        RNA_def_property_int_sdna(prop, NULL, "tilex");
+       RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
        RNA_def_property_range(prop, 8, 65536);
        RNA_def_property_ui_text(prop, "Tile X", "Horizontal tile size to use while rendering");
        RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
        
        prop = RNA_def_property(srna, "tile_y", PROP_INT, PROP_NONE);
        RNA_def_property_int_sdna(prop, NULL, "tiley");
+       RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
        RNA_def_property_range(prop, 8, 65536);
        RNA_def_property_ui_text(prop, "Tile Y", "Vertical tile size to use while rendering");
        RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);