Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert.c
| Show First 20 Lines • Show All 2,244 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| else if (t->options & CTX_PAINT_CURVE) { | else if (t->options & CTX_PAINT_CURVE) { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| else if (t->options & CTX_SCULPT) { | else if (t->options & CTX_SCULPT) { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| else if ((t->view_layer->basact) && (ob = t->view_layer->basact->object) && | else if ((t->view_layer->basact) && (ob = t->view_layer->basact->object) && | ||||
| (ob->mode & OB_MODE_PARTICLE_EDIT) && PE_get_current(t->scene, ob)) { | (ob->mode & OB_MODE_PARTICLE_EDIT) && PE_get_current(t->depsgraph, t->scene, ob)) { | ||||
| /* do nothing */ | /* do nothing */ | ||||
| } | } | ||||
| else if (t->flag & T_CURSOR) { | else if (t->flag & T_CURSOR) { | ||||
| /* do nothing */ | /* do nothing */ | ||||
| } | } | ||||
| else { /* Objects */ | else { /* Objects */ | ||||
| BLI_assert(t->flag & (T_OBJECT | T_TEXTURE)); | BLI_assert(t->flag & (T_OBJECT | T_TEXTURE)); | ||||
| ▲ Show 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | if (ob_armature && ob_armature->mode & OB_MODE_POSE) { | ||||
| initTransDataContainers_FromObjectData(t, ob_armature, objects, objects_len); | initTransDataContainers_FromObjectData(t, ob_armature, objects, objects_len); | ||||
| createTransPose(t); | createTransPose(t); | ||||
| countAndCleanTransDataContainer(t); | countAndCleanTransDataContainer(t); | ||||
| has_transform_context = true; | has_transform_context = true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else if (ob && (ob->mode & OB_MODE_PARTICLE_EDIT) && PE_start_edit(PE_get_current(scene, ob))) { | else if (ob && (ob->mode & OB_MODE_PARTICLE_EDIT) && | ||||
| PE_start_edit(PE_get_current(t->depsgraph, scene, ob))) { | |||||
| createTransParticleVerts(C, t); | createTransParticleVerts(C, t); | ||||
| countAndCleanTransDataContainer(t); | countAndCleanTransDataContainer(t); | ||||
| t->flag |= T_POINTS; | t->flag |= T_POINTS; | ||||
| if (t->data_len_all && t->flag & T_PROP_EDIT) { | if (t->data_len_all && t->flag & T_PROP_EDIT) { | ||||
| sort_trans_data_selected_first(t); | sort_trans_data_selected_first(t); | ||||
| set_prop_dist(t, 1); | set_prop_dist(t, 1); | ||||
| sort_trans_data_dist(t); | sort_trans_data_dist(t); | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||