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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-02-10 19:09:00 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-02-10 19:09:00 +0300
commite89fd502d7b1ee5a4c17286a78ae0116f03510b7 (patch)
tree5c68b5cb560b3cc5ba62046167d364b2183abb11 /source/blender/editors/transform/transform_conversions.c
parent6cd3ebfc9fa4838a74192f2e5cc82b5d5d2e6fe7 (diff)
parent227a94077f508a47fe7595b9091ab86aecde4ad5 (diff)
Merge branch 'master' into alembic_pointcache
Conflicts: CMakeLists.txt build_files/build_environment/install_deps.sh source/blender/blenkernel/CMakeLists.txt source/blender/blenkernel/SConscript source/blender/blenkernel/intern/particle.c source/blender/blenkernel/intern/pointcache.c source/blender/editors/physics/particle_edit.c source/blender/editors/space_outliner/outliner_draw.c source/blender/makesdna/DNA_modifier_types.h source/blender/makesrna/SConscript source/blender/makesrna/intern/CMakeLists.txt source/blender/makesrna/intern/SConscript source/blender/makesrna/intern/rna_modifier.c source/blender/makesrna/intern/rna_object_force.c source/blender/modifiers/MOD_modifiertypes.h source/blender/modifiers/intern/MOD_util.c source/blender/render/intern/source/voxeldata.c
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r--source/blender/editors/transform/transform_conversions.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index c1350b1f076..42f7087d4a7 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -5354,7 +5354,7 @@ void autokeyframe_pose_cb_func(bContext *C, Scene *scene, View3D *v3d, Object *o
/* only if bone name matches too...
* NOTE: this will do constraints too, but those are ok to do here too?
*/
- if (pchanName && strcmp(pchanName, pchan->name) == 0)
+ if (pchanName && STREQ(pchanName, pchan->name))
insert_keyframe(reports, id, act, ((fcu->grp) ? (fcu->grp->name) : (NULL)), fcu->rna_path, fcu->array_index, cfra, flag);
if (pchanName) MEM_freeN(pchanName);
@@ -5597,6 +5597,12 @@ void special_aftertrans_update(bContext *C, TransInfo *t)
* during cleanup - psy-fi */
freeEdgeSlideTempFaces(sld);
}
+ else if (t->mode == TFM_VERT_SLIDE) {
+ /* as above */
+ VertSlideData *sld = t->customData;
+ projectVertSlideData(t, true);
+ freeVertSlideTempFaces(sld);
+ }
if (t->obedit->type == OB_MESH) {
special_aftertrans_update__mesh(C, t);
@@ -7321,6 +7327,11 @@ static void createTransGPencil(bContext *C, TransInfo *t)
bGPDstroke *gps;
for (gps = gpf->strokes.first; gps; gps = gps->next) {
+ /* skip strokes that are invalid for current view */
+ if (ED_gpencil_stroke_can_use(C, gps) == false) {
+ continue;
+ }
+
if (propedit) {
/* Proportional Editing... */
if (propedit_connected) {
@@ -7424,6 +7435,11 @@ static void createTransGPencil(bContext *C, TransInfo *t)
TransData *tail = td;
bool stroke_ok;
+ /* skip strokes that are invalid for current view */
+ if (ED_gpencil_stroke_can_use(C, gps) == false) {
+ continue;
+ }
+
/* What we need to include depends on proportional editing settings... */
if (propedit) {
if (propedit_connected) {