Campbell Barton
d4ab6f3a9e
fix [ #36107 ] Moving origin of instanced objects doesn't work properly
...
now use the active object first if its selected, this means when multiple instances are selected, using the active object gives a predictable outcome.
2013-07-15 01:34:59 +00:00
Campbell Barton
ef4db04da8
code cleanup: lots of calls to BKE_mesh_calc_normals_mapping were not using the mapping functionality.
...
replace ED_mesh_calc_normals with BKE_mesh_calc_normals().
2013-05-28 14:23:07 +00:00
Sergey Sharybin
682da3ac98
Apply scale on scene reconstruction when applying scale on camera
...
This means when you've got reconstructed scene assigned to a
3d camera (via camera solver constraint) and applies scale on
this camera from Ctrl-A menu, scale will be applied on the
reconstructed scene and reset camera size to identity.
This is very useful feature for scene orientation, when you'll
just scale camera by S in the viewport to match bundles
some points in the space, and then you'll easiy make camera
have identity scale (which is needed for nice working moblur
and other things mentioning by Sebastian :) without loosing
scale of bundles themselves.
Behavior of apply scale for cameras without clip assigned
to them does not change at all.
2013-05-13 13:37:05 +00:00
Campbell Barton
6da961775f
code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-13 20:31:52 +00:00
Campbell Barton
ddddb7bab1
code cleanup: favor braces when blocks have mixed brace use.
2013-03-09 03:46:30 +00:00
Joshua Leung
e8d42ab48e
Properly prefixing name of exproted armature API
2013-02-27 23:56:51 +00:00
Brecht Van Lommel
20220d47e3
Dependency Graph: some refactoring which should have no user visible impact
...
besides performance in some cases.
* DAG_scene_sort is now removed and replaced by DAG_relations_tag_update in
most cases. This will clear the dependency graph, and only rebuild it right
before it's needed again when the scene is re-evaluated.
This is done because DAG_scene_sort is slow when called many times from
python operators. Further the scene argument is not needed because most
operations can potentially affect more than the current scene.
* DAG_scene_relations_update will now rebuild the dependency graph if it's not
there yet, and DAG_scene_relations_rebuild will force a rebuild for the rare
cases that need it.
* Remove various places where ob->recalc was set manually. This should go
through DAG_id_tag_update() in nearly all cases instead since this is now
a fast operation. Also removed DAG_ids_flush_update that goes along with
such manual tagging of ob->recalc.
2013-02-21 19:33:04 +00:00
Campbell Barton
bc52cb1be3
fix for apply rotation/location failing for surface object types (were recognized as 2d curves).
2013-02-19 14:19:53 +00:00
Campbell Barton
3a192ca359
patch [ #33697 ] Apply transformation added to metaballs.
...
from Jesse Werner (vidjogamer), with own addition of RNA function, scale and rotation support.
2013-02-11 10:56:21 +00:00
Campbell Barton
441c7fb79a
fix for crashes running some operators in background mode and some divide by zero errors.
2013-02-06 02:48:03 +00:00
Sergej Reich
5a51800a41
Compile fix
...
Patch [#34075 ] by Davis Sorenson (dsavi), thanks.
2013-02-01 16:03:42 +00:00
Brecht Van Lommel
496c3e4f8f
Fix #34070 : set origin operator did not work for lattice objects.
2013-02-01 15:17:39 +00:00
Brecht Van Lommel
779375251c
Fix #33487 : game engine did not convert objects with rotation modes other than
...
Euler XYZ correctly, was never implemented;
2012-12-17 21:40:28 +00:00
Ton Roosendaal
5b33146875
Bugfix #32987
...
"Set origin to cursor" tool failed for parented/rotated objects.
Matrix mashup.
Thanks to Ben Batt for the fix!
2012-11-04 12:33:58 +00:00
Bastien Montagne
c9dade4fe0
Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-26 17:32:50 +00:00
Campbell Barton
1767b65846
style cleanup: also rename bmesh_decimate.c --> bmesh_decimate_collapse.c
2012-10-23 03:38:26 +00:00
Campbell Barton
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
Sergej Reich
0a590aadf5
Add option to set object origin to the center of mass
...
This uses the weighted average of polygon centroids based on area
It work well in most cases but will be slightly wrong when polygons have
many vertices.
2012-10-20 16:48:54 +00:00
Bastien Montagne
b7f4c69ef7
More UI messages and BKE_reportf->BKE_report fixes...
2012-10-14 15:29:09 +00:00
Bastien Montagne
9f21b799c4
And more UI messages spell check.
2012-10-13 13:40:05 +00:00
Campbell Barton
67e2768570
quiet some -Wshadow warnings
2012-10-12 14:35:10 +00:00
Bastien Montagne
6536e2d01a
And more UI messages fixes...
2012-10-08 21:03:35 +00:00
Campbell Barton
e982e9b04f
fix [ #32353 ] 'Focus'(center) applied on a rig should only take visible bones into account
2012-08-18 14:27:48 +00:00
Sergey Sharybin
35ef09372a
Fix #32306 : Applying location or rotation scales sculpt data
2012-08-11 16:20:30 +00:00
Campbell Barton
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
Antony Riakiotakis
c464654f5e
Fix memory leak when trying to apply transformations to shared meshes
2012-05-20 11:06:46 +00:00
Campbell Barton
9dd981a440
style cleanup: block comments
2012-05-16 23:37:23 +00:00
Campbell Barton
f964292630
fix geometry to origin in mesh editmode - was broken since bmesh merge.
2012-05-13 11:14:43 +00:00
Campbell Barton
305d341ec2
code cleanup: use vector math function minmax_v3v3_v3() and other minor vector function edits.
2012-05-13 11:05:52 +00:00
Sergey Sharybin
c7b20e79cd
Style cleanup: rename BKE_metaball* to BKE_mball -- mball is more commonly used term in Blender
2012-05-07 06:38:41 +00:00
Campbell Barton
c91cee2bb9
code cleanup: naming - BKE_mesh_*
2012-05-05 21:28:12 +00:00
Campbell Barton
1dccd4c98a
code cleanup: naming - pose/armature/image
...
also use ..._find_name(..., name) rather then ..._find_named(..., name) --- both were used.
2012-05-05 16:03:57 +00:00
Campbell Barton
a731e13043
code cleanup: function naming, use BKE_*type* prefix.
2012-05-05 14:03:12 +00:00
Campbell Barton
a5af5e8f50
style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30 16:22:40 +00:00
Sergey Sharybin
f88cfd9168
Code and style cleanup in own modules in BKE and also mball module
...
- Make sure functions are named in way BKE_<object>_<action> (same way as RNA callbacks)
- Make functions which are used by mball.c only static and remove their prototypes
from public header file.
Further cleanup is coming.
2012-04-28 16:49:00 +00:00
Campbell Barton
e2c453b5f9
style cleanup: editors / mesh & object
2012-04-28 15:42:27 +00:00
Campbell Barton
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
Campbell Barton
475ecbb0ce
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).
2012-04-19 13:47:58 +00:00
Campbell Barton
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
Campbell Barton
09f29c0b70
style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions
2012-03-27 04:46:52 +00:00
Campbell Barton
6faeac9fe2
style cleanup: add braces around checks - 'if ELEM() {...}', confuses some parsers that done expand macros.
2012-03-25 22:35:18 +00:00
Campbell Barton
ab4a2aaf4a
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:38:07 +00:00
Campbell Barton
4c3bb77012
style cleanup: spaces aroudn operators for operator definitions.
2012-03-22 07:26:09 +00:00
Campbell Barton
b482a0d4fc
patch [ #30602 ] Wiki Quick Hack: Apply Transformation To Lattices
...
from Justin Dailey (dail)
2012-03-20 23:09:28 +00:00
Campbell Barton
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
Campbell Barton
f6ae27daef
style cleanup - comment spelling + translate some dutch.
2012-03-04 04:35:12 +00:00
Campbell Barton
a2c182e923
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
2012-03-03 16:31:46 +00:00
Sergey Sharybin
f268918d50
Fix #30337 : missed Set Origin for Metaball
...
Implemented Set Origin operator for Meta Balls.
2012-02-26 08:55:31 +00:00
Campbell Barton
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
Campbell Barton
705f23064e
svn merge ^/trunk/blender -r43294:43338
2012-01-13 01:39:57 +00:00