Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2017-06-27 00:03:37 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2017-06-27 00:03:37 +0300
commit1dd6f2a7e099992ee03b8049c4d47dd8ea2e66de (patch)
treef3ac8faae5091c57bfca634f844bc818ebb2fe01 /render_povray/__init__.py
parent809b3771f95afcebd0db93d21ca36ecb05e9d524 (diff)
*added "insert" menu to text view properties: it lists snippets from POV-Ray installation and inserts them at cursor's location when clicked
Probably needs Linux testing and will need subpaths to be more comfortable to use
Diffstat (limited to 'render_povray/__init__.py')
-rw-r--r--render_povray/__init__.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index a04977a4..f460fc16 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -40,7 +40,7 @@ if "bpy" in locals():
else:
import bpy
- import addon_utils # To use some other addons
+ #import addon_utils # To use some other addons
import nodeitems_utils #for Nodes
from nodeitems_utils import NodeCategory, NodeItem #for Nodes
from bpy.types import (
@@ -67,6 +67,7 @@ else:
def string_strip_hyphen(name):
return name.replace("-", "")
+
###############################################################################
# Scene POV properties.
###############################################################################
@@ -2154,10 +2155,16 @@ class PovrayPreferences(AddonPreferences):
description="Path to renderer executable",
subtype='FILE_PATH',
)
+ docpath_povray = StringProperty(
+ name="Includes Location",
+ description="Path to Insert Menu files",
+ subtype='FILE_PATH',
+ )
def draw(self, context):
layout = self.layout
layout.prop(self, "branch_feature_set_povray")
layout.prop(self, "filepath_povray")
+ layout.prop(self, "docpath_povray")