[Bf-blender-cvs] [582f9ddeb7] master: Update path_menu for recent API change
Campbell Barton
noreply at git.blender.org
Tue Mar 14 17:52:22 CET 2017
Commit: 582f9ddeb7aa4d2139cef4d0b0f53be32adcf852
Author: Campbell Barton
Date: Wed Mar 15 02:59:32 2017 +1100
Branches: master
https://developer.blender.org/rB582f9ddeb7aa4d2139cef4d0b0f53be32adcf852
Update path_menu for recent API change
===================================================================
M release/scripts/startup/bl_ui/space_text.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index 1fd10575e0..8c5418161c 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -215,20 +215,22 @@ class TEXT_MT_templates_py(Menu):
bl_label = "Python"
def draw(self, context):
- self.path_menu(bpy.utils.script_paths("templates_py"),
- "text.open",
- {"internal": True},
- )
+ self.path_menu(
+ bpy.utils.script_paths("templates_py"),
+ "text.open",
+ props_default={"internal": True},
+ )
class TEXT_MT_templates_osl(Menu):
bl_label = "Open Shading Language"
def draw(self, context):
- self.path_menu(bpy.utils.script_paths("templates_osl"),
- "text.open",
- {"internal": True},
- )
+ self.path_menu(
+ bpy.utils.script_paths("templates_osl"),
+ "text.open",
+ props_default={"internal": True},
+ )
class TEXT_MT_templates(Menu):
More information about the Bf-blender-cvs
mailing list