Page Menu
Home
Search
Configure Global Search
Log In
Files
F26188
apply_transformation_to_metaballs.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Jesse Werner (vidjogamer)
Nov 13 2013, 5:30 PM
Size
1 KB
Subscribers
None
apply_transformation_to_metaballs.patch
View Options
Index: source/blender/editors/object/object_transform.c
===================================================================
--- source/blender/editors/object/object_transform.c (revision 53392)
+++ source/blender/editors/object/object_transform.c (working copy)
@@ -406,6 +406,12 @@
change = 0;
}
}
+ else if (ob->type == OB_MBALL) {
+ if (ID_REAL_USERS(ob->data) > 1) {
+ BKE_report(reports, RPT_ERROR, "Cannot apply to a multi user metaball, doing nothing");
+ change = 0;
+ }
+ }
else if (ELEM(ob->type, OB_CURVE, OB_SURF)) {
Curve *cu;
@@ -515,6 +521,19 @@
bp++;
}
}
+ else if (ob->type == OB_MBALL) {
+ MetaBall *mb = ob->data;
+ MetaElem *me = mb->elems.first;
+
+ while(me != NULL) {
+ float loc[3] = {me->x,me->y,me->z};
+ mul_m4_v3(mat, loc);
+ me->x = loc[0];
+ me->y = loc[1];
+ me->z = loc[2];
+ me = me->next;
+ }
+ }
else if (ELEM(ob->type, OB_CURVE, OB_SURF)) {
Curve *cu = ob->data;
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ac/ae/cf85dc47cbcdbf18d72d272112a5
Event Timeline
Log In to Comment