[Bf-blender-cvs] [4f85982c6f6] blender2.8: Fix base->flag and base->flag_legacy: The flags of the Transform operator are being added to the bases of the not evaluated view_layer.
Germano
noreply at git.blender.org
Wed Jul 25 00:35:15 CEST 2018
Commit: 4f85982c6f6621c7d64a573e1d4558de4e824a00
Author: Germano
Date: Tue Jul 24 19:34:49 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB4f85982c6f6621c7d64a573e1d4558de4e824a00
Fix base->flag and base->flag_legacy: The flags of the Transform operator are being added to the bases of the not evaluated view_layer.
But I'm not sure if the flags `BA_WAS_SEL`,` BASE_SELECTED` and `BA_SNAP_FIX_DEPS_FIASCO`(lol XD) should be added to the bases of the not evaluated `view_layer`. This needs to be discussed.
===================================================================
M source/blender/editors/transform/transform_snap_object.c
===================================================================
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index dd4fc5025d9..95ce26beed1 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -206,7 +206,7 @@ static void iter_snap_objects(
IterSnapObjsCallback sob_callback,
void *data)
{
- ViewLayer *view_layer = DEG_get_evaluated_view_layer(sctx->depsgraph);
+ ViewLayer *view_layer = DEG_get_input_view_layer(sctx->depsgraph);
const eSnapSelect snap_select = params->snap_select;
const bool use_object_edit_cage = params->use_object_edit_cage;
More information about the Bf-blender-cvs
mailing list