Update path_menu for recent API change
This commit is contained in:
@@ -215,9 +215,10 @@ class TEXT_MT_templates_py(Menu):
|
||||
bl_label = "Python"
|
||||
|
||||
def draw(self, context):
|
||||
self.path_menu(bpy.utils.script_paths("templates_py"),
|
||||
self.path_menu(
|
||||
bpy.utils.script_paths("templates_py"),
|
||||
"text.open",
|
||||
{"internal": True},
|
||||
props_default={"internal": True},
|
||||
)
|
||||
|
||||
|
||||
@@ -225,9 +226,10 @@ class TEXT_MT_templates_osl(Menu):
|
||||
bl_label = "Open Shading Language"
|
||||
|
||||
def draw(self, context):
|
||||
self.path_menu(bpy.utils.script_paths("templates_osl"),
|
||||
self.path_menu(
|
||||
bpy.utils.script_paths("templates_osl"),
|
||||
"text.open",
|
||||
{"internal": True},
|
||||
props_default={"internal": True},
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user