Campbell Barton
68c8530be1
change to object-smooth poll function, no need to check for active object, just check we're not in editmode.
2013-08-12 06:10:29 +00:00
Brecht Van Lommel
7108ec9d1e
Fix #36383 : add object to group check for dependency cycles did not work correctly
...
when the group contained two objects duplicating the same group. Also added the
dependency check to the "add to active group" operator now for consistency.
2013-08-07 20:16:36 +00:00
Campbell Barton
f5c66a3676
quiet shadow warnings and remove redundant NULL check
2013-08-07 04:31:05 +00:00
Campbell Barton
b03bc88d21
replace mul_serie_m4 with mul_m4_m4m4 when only 3 args are given
2013-08-06 01:45:29 +00:00
Campbell Barton
dd037a85a0
code cleanup: remove unused define, correct header guard mismatch, add NULL check so DM_to_mesh() can have a NULL object passed (currently not used) and remove redundant NULL check.
2013-08-03 23:58:17 +00:00
Campbell Barton
8052bf0ec2
add missing NULL checks from BKE_constraint_get_typeinfo(), so constraints from the future dont crash.
...
also remove some redundant NULL checks.
2013-08-03 22:03:15 +00:00
Sergey Sharybin
adfc77c1db
Use bool instead of int.
2013-07-31 03:44:45 +00:00
Sergey Sharybin
bf6ea3d717
Fix #36302 : Multires baking to zero 0 was showing error but still was baking
...
We do not support baking to level 0, disabled this completely now.
2013-07-31 03:35:45 +00:00
Campbell Barton
fc4a777511
use '_exec' suffix for operator execute callbacks, also picky change to sizeof() use in BLI_array.h
2013-07-28 17:06:31 +00:00
Campbell Barton
c4a50e9aeb
remove unneeded NULL checks, add one for give_matarar() return value.
2013-07-28 06:37:58 +00:00
Campbell Barton
09aadea2cc
remove unused code from object convert and indent.
2013-07-27 09:20:10 +00:00
Campbell Barton
04ea8c0ee8
remove the pointer from BLI_bitmap's typedef,
...
hides that an arg passed is really an array which may be modified by other functions.
2013-07-22 23:20:48 +00:00
Campbell Barton
9634f8f115
transform was flushing the selection (inline), now skip this and use the selection as-is.
...
flush the selection on entering editmode instead (since the selection mode can be changed with another mesh).
is other tools leave the selection incorrectly flushed, those will need to be fixed so transform works as expected.
2013-07-22 10:44:24 +00:00
Campbell Barton
7db1d6556d
code cleanup: add break statements in switch ()'s, (even at the last case).
2013-07-21 08:16:37 +00:00
Campbell Barton
397da50002
style cleanup: switch statements, include break statements within braces & indent.
...
also indent case's within the switch (we already did both of these almost everywhere)
2013-07-19 15:23:42 +00:00
Campbell Barton
80f3b32e06
patch [ #35789 ] Quick hack more/less tool for lattices
...
by Pedro Riera (priera), Andrey Dubravin, I also made some changes.
2013-07-19 10:49:23 +00:00
Campbell Barton
df299ab500
patch [ #36032 ] Quick Hack lattice random selection
...
by Andrey Dubravin (daa)
2013-07-19 10:44:39 +00:00
Bastien Montagne
20d6cd008b
Style cleanup of UI messages.
...
Mostly, "weight groups" -> "vertex groups", and usual case/endpoints/typos/etc.
As a remainder, please read http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#UI_Messages before writing UI messages!
2013-07-16 13:12:58 +00:00
Campbell Barton
925c5010e8
fix for checking char arrays against NULL, instead check their first character. also remove some dead code (return directly after return).
2013-07-16 11:42:07 +00:00
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
eedd541929
fix for misc errors
...
- reference to out of scope stack var
- freeing fixes size array (never allocated)
- add matching va_end for va_start
2013-07-13 05:46:48 +00:00
Campbell Barton
24a3fc5a6b
fix for possible bug with compilers that dont have boolean support.
2013-07-10 08:01:06 +00:00
Campbell Barton
fba8e8861c
fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.
2013-07-09 07:50:16 +00:00
Gaia Clary
fe865b8429
Changed default setting for transfer weights to Group:All
2013-07-05 09:34:17 +00:00
Gaia Clary
a07a72d93d
Added generic function to Sync pose bone with active vgroup. For use in Weight Paint and Vertex Paint
2013-07-04 21:49:48 +00:00
Gaia Clary
db9f21ddd3
replaced OPERATOR_CANCELLED by OPERATOR_FINISHED to get the redo panel for Transfer Weights
2013-07-04 20:33:52 +00:00
Campbell Barton
077f2b77b9
missed change needed in r58003, wasn't selecting source group properly.
2013-07-04 19:45:11 +00:00
Campbell Barton
cee5bd4623
changes to weight paint transfer
...
- Use the active group of the active (target) object (not the active group of the other, unselected object)
- Ensure the active group doesnt change from the one that was set originally.
- defgroup_find_name was doing redundant lookup on its self.
2013-07-04 19:34:49 +00:00
Brecht Van Lommel
ea5f0ec962
Fix #35997 : add armature > single bone, then change location or rotation would
...
move only the origin and not the bone. It doesn't need to use any object
matrices to add the bone, the only reason this worked before is because they
were still unit matrices due to depsgraph not running immediately on add.
2013-07-04 14:59:26 +00:00
Campbell Barton
69b8b16464
rename poll functions from r57986, also no need to count the list to check if its empty.
2013-07-04 09:31:33 +00:00
Gaia Clary
5fc8393dee
Moved 'vgroups exist' check into operator poll functions of weight tools
2013-07-04 08:47:42 +00:00
Campbell Barton
70dc1d8cb6
stop adding groups from changing the active group with weight transfer, add BKE_defgroup_new function.
2013-07-04 03:56:18 +00:00
Campbell Barton
374383997c
fixes/edits to wright transfer
...
- poll function now checks for a mesh.
- other selected lattices would crash, check for meshes there too.
- better reporting when transfer fails.
- remove feature to sync with active bone after transfer, other tools don't do this (we could make into a generic function if its needed).
2013-07-03 21:29:30 +00:00
Brecht Van Lommel
bbfc3c6cee
Fix #35992 : crash using make links > animation data between empty and mesh object.
2013-07-03 20:37:09 +00:00
Gaia Clary
7eed4d5c4f
Fix Weight Paint(Weight-Transfer): active vgroup does not match active bone when new vgroups where created during transfer
2013-07-03 20:31:38 +00:00
Brecht Van Lommel
3181c4ecd5
Fix #35935 : make links > groups, which copies group membership between objects,
...
would also copy object dupligroups (next item in the menu).
2013-07-03 17:16:24 +00:00
Brecht Van Lommel
d6c14ed855
Fix #35964 : viewport render not updating with linking materials with ctrl+L.
2013-07-02 17:21:40 +00:00
Campbell Barton
3d845b4a17
move api functions from r57909 into BKE.
2013-07-01 20:27:03 +00:00
Gaia Clary
11145c7c22
Restrict Weight Edit Panel to mesh/lattice Edit and Weight Paint vertex selection mode
2013-07-01 19:30:41 +00:00
Joshua Leung
4f3f95751a
Bugfix [ #35936 ] Can't create new vertex group when using Ctrl G menu
...
This was caused by r.57812
There were two problems here:
1) vertex_group_vert_select_unlocked_poll() had faulty logic which meant that
it always failed when there were no vgroups present yet - the final return
always just fell through
2) Since the "Assign to New Groups" option was actually implemented using the
same operator as "Assign to Active Group" (just with an extra parameter set), if
the active group was locked, it was not possible to "Assign to New Group" (even
though a new group would not be locked).
2013-07-01 13:02:53 +00:00
Campbell Barton
32d5b52f59
re-arrange '--help' output into more useful sections (added debug, python).
...
also minor style cleanup
2013-06-29 10:09:15 +00:00
Campbell Barton
62ab3baea4
replace LATTICE_PT macro with BKE_lattice_index_from_uvw().
2013-06-28 21:24:38 +00:00
Campbell Barton
f55ef8b3fc
fix regression since early 2.5x, there was no way to copy library linked objects.
2013-06-28 19:33:58 +00:00
Campbell Barton
24e8f2f4ce
fix for crash linking fonts to other objects with linked obdata (link, undo would crash).
2013-06-28 18:39:39 +00:00
Brecht Van Lommel
77e0709e48
Fix #35551 : the topology mirror setting affected shape key and vertex group but
...
this was confusing as there was no setting visible for it. Now these menus
contain an entry to mirror without and with topology mirror.
2013-06-28 17:13:09 +00:00
Campbell Barton
3370b765ec
fix [ #35901 ] Hooks on armature bones are calculated in wrong space
2013-06-28 06:00:38 +00:00
Gaia Clary
e2e487a877
Fix: Check for locked Vertex Group (returned true where false was expected)
2013-06-27 18:23:03 +00:00
Campbell Barton
73fcfd8651
fix for memory leak in vgroup_copy_active_to_sel
2013-06-27 17:11:23 +00:00
Gaia Clary
763a737fcc
Changed Tool Tip for clarity
2013-06-27 07:03:40 +00:00
Gaia Clary
821c02ddb7
Added checks to Vertex Groups panel to respect locked Vertex Groups
2013-06-27 06:33:01 +00:00