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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-23 06:08:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-23 06:08:14 +0300
commit43007d7fed61ad1b211cab68bc890010874e15a8 (patch)
treea41fa036fd599ae9f5e4abd62208b5929a9bc564
parent8378aa74fa8e1fc035962fccfe59eec72356f5f2 (diff)
- fix python error for poselib UI when none is active.
- add info to create_dupli_objects rna function docstring. - transform snap had bad define, disabling BVH accelerated snap (own fault).
-rw-r--r--release/scripts/ui/properties_data_armature.py13
-rw-r--r--source/blender/editors/transform/transform_snap.c2
-rw-r--r--source/blender/makesrna/intern/rna_object_api.c2
3 files changed, 7 insertions, 10 deletions
diff --git a/release/scripts/ui/properties_data_armature.py b/release/scripts/ui/properties_data_armature.py
index 5f5b5ad3878..2dc23fd3493 100644
--- a/release/scripts/ui/properties_data_armature.py
+++ b/release/scripts/ui/properties_data_armature.py
@@ -172,12 +172,6 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, bpy.types.Panel):
row.template_ID(ob, "pose_library", new="poselib.new", unlink="poselib.unlink")
if poselib:
- activePoseIndex = poselib.pose_markers.active_index
- if poselib.pose_markers.active:
- activePoseName = poselib.pose_markers.active.name
- else:
- activePoseName = ""
-
row = layout.row()
row.template_list(poselib, "pose_markers", poselib.pose_markers, "active_index", rows=5)
@@ -189,9 +183,12 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, bpy.types.Panel):
col.operator("poselib.pose_add", icon='ZOOMIN', text="")
col.operator_context = 'EXEC_DEFAULT' # exec not invoke, so that menu doesn't need showing
- col.operator("poselib.pose_remove", icon='ZOOMOUT', text="").pose = activePoseName
- col.operator("poselib.apply_pose", icon='ZOOM_SELECTED', text="").pose_index = activePoseIndex
+ pose_marker_active = poselib.pose_markers.active
+
+ if pose_marker_active is not None:
+ col.operator("poselib.pose_remove", icon='ZOOMOUT', text="").pose = pose_marker_active.name
+ col.operator("poselib.apply_pose", icon='ZOOM_SELECTED', text="").pose_index = poselib.pose_markers.active_index
row = layout.row()
row.operator("poselib.action_sanitise")
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c
index ab1cbab9a23..9ff21a1c5e4 100644
--- a/source/blender/editors/transform/transform_snap.c
+++ b/source/blender/editors/transform/transform_snap.c
@@ -83,7 +83,7 @@
//#include "blendef.h" /* for selection modes */
-#define USE_BVH_FACE_PROJECT
+#define USE_BVH_FACE_SNAP
/********************* PROTOTYPES ***********************/
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c
index 43113fed2c4..644fb519524 100644
--- a/source/blender/makesrna/intern/rna_object_api.c
+++ b/source/blender/makesrna/intern/rna_object_api.c
@@ -444,7 +444,7 @@ void RNA_api_object(StructRNA *srna)
/* duplis */
func= RNA_def_function(srna, "create_dupli_list", "rna_Object_create_duplilist");
- RNA_def_function_ui_description(func, "Create a list of dupli objects for this object, needs to be freed manually with free_dupli_list.");
+ RNA_def_function_ui_description(func, "Create a list of dupli objects for this object, needs to be freed manually with free_dupli_list to restore the objects real matrix and layers.");
parm= RNA_def_pointer(func, "scene", "Scene", "", "Scene within which to evaluate duplis.");
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
RNA_def_function_flag(func, FUNC_USE_REPORTS);