Commit: 68d82793eddc82dd146aeb513dac5427056ea8fb Author: Campbell Barton Date: Wed Mar 22 08:32:10 2017 +1100 Branches: app-templates https://developer.blender.org/rB68d82793eddc82dd146aeb513dac5427056ea8fb
Add back basic panels for 101 making it more usable =================================================================== M release/datafiles/app_templates/101/template/__init__.py M release/datafiles/app_templates/101/template/ui.py =================================================================== diff --git a/release/datafiles/app_templates/101/template/__init__.py b/release/datafiles/app_templates/101/template/__init__.py index fb43927866..1bade699e2 100644 --- a/release/datafiles/app_templates/101/template/__init__.py +++ b/release/datafiles/app_templates/101/template/__init__.py @@ -54,9 +54,52 @@ class AppStateStore: bl_space_type={'VIEW_3D', 'PROPERTIES'}, # keep basic panels blacklist={ + 'BONE_PT_constraints', + 'DATA_PT_context_mesh', + 'DATA_PT_modifiers', + 'DATA_PT_shape_keys', + 'DATA_PT_uv_texture', + 'DATA_PT_vertex_colors', + 'DATA_PT_vertex_groups', + 'MATERIAL_PT_context_material', + 'MATERIAL_PT_diffuse', + 'MATERIAL_PT_preview', + 'MATERIAL_PT_specular', + 'OBJECT_PT_constraints', + 'OBJECT_PT_relations', 'OBJECT_PT_transform', + 'RENDERLAYER_PT_layer_options', + 'RENDERLAYER_PT_layer_passes', + 'RENDERLAYER_PT_layers', + 'RENDER_PT_dimensions', + 'RENDER_PT_dimensions', + 'RENDER_PT_output', + 'SCENE_PT_scene', + 'SCENE_PT_unit', + 'TEXTURE_PT_blend', + 'TEXTURE_PT_clouds', + 'TEXTURE_PT_context_texture', + 'TEXTURE_PT_distortednoise', + 'TEXTURE_PT_image', + 'TEXTURE_PT_image_mapping', + 'TEXTURE_PT_influence', + 'TEXTURE_PT_magic', + 'TEXTURE_PT_marble', + 'TEXTURE_PT_musgrave', + 'TEXTURE_PT_noise', + 'TEXTURE_PT_pointdensity', + 'TEXTURE_PT_pointdensity_turbulence', + 'TEXTURE_PT_preview', + 'TEXTURE_PT_stucci', + 'TEXTURE_PT_voronoi', + 'TEXTURE_PT_voxeldata', + 'TEXTURE_PT_wood', + 'TEXTURE_UL_texslots', 'VIEW3D_PT_tools_add_object', 'VIEW3D_PT_tools_meshedit', + 'WORLD_PT_preview', + 'WORLD_PT_world', + # '', }, ), ) @@ -80,15 +123,21 @@ class AppStateStore: return op_id not in { "transform.mirror", "sound.mixdown", - "object.modifier_add", - "object.forcefield_toggle", + + "view3d.clip_border", + "view3d.zoom_border", + "view3d.render_border", + "view3d.clear_render_border", + "view3d.localview", + "object.select_pattern", + "object.select_mirror", + "object.select_by_layer", } def filter_property(ty, prop): return (ty, prop) not in { - ("Object", "location"), - ("Object", "rotation_euler"), - ("Object", "scale"), + ("MaterialSlot", "link"), + ("Material", "use_nodes"), ("RenderSettings", "filter_size"), ("RenderSettings", "frame_map_new"), ("RenderSettings", "frame_map_old"), @@ -100,6 +149,16 @@ class AppStateStore: ("RenderSettings", "use_placeholder"), ("RenderSettings", "use_render_cache"), ("Scene", "frame_step"), + ("Scene", "lock_frame_selection_to_range"), + ("Scene", "sync_mode"), + ("Scene", "use_preview_range"), + ("Object", "pass_index"), + } + + def filter_menu(menu_id): + return menu_id not in { + "TIME_MT_marker", + "TIME_MT_playback", } def filter_label(text): @@ -112,6 +171,7 @@ class AppStateStore: self.ui_filter_store = bl_app_override.ui_draw_filter_register( filter_operator=filter_operator, filter_property=filter_property, + filter_menu=filter_menu, filter_label=filter_label, ) diff --git a/release/datafiles/app_templates/101/template/ui.py b/release/datafiles/app_templates/101/template/ui.py index 028fa82bdf..5b582b8174 100644 --- a/release/datafiles/app_templates/101/template/ui.py +++ b/release/datafiles/app_templates/101/template/ui.py @@ -29,13 +29,14 @@ from bl_ui.properties_render import RenderButtonsPanel # Just an example of a render panel class RENDER_PT_render_simple(Panel, RenderButtonsPanel): - bl_label = "101 Render Panel" + bl_label = "Render" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): layout = self.layout row = layout.row(align=True) row.operator("render.render", text="Render", icon='RENDER_STILL') + row.operator("render.render", text="Animation", icon='RENDER_ANIMATION').animation = True classes = ( _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs