Kevin Mackay
2f80d304b0
Fix T39935: Duplicate looses active curve spline
2015-12-01 17:56:09 +11:00
676d790d29
Cleanup: use rna_enum_ prefix for RNA enums
...
Definitions could shadow local vars.
2015-11-23 17:40:09 +11:00
a374ff16b5
Cleanup: editor api naming
...
- use ED_ prefix for api calls
- use ED_*_select_pick for mouse selection (was already done in parts)
2015-11-18 12:22:00 +11:00
865796375b
Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.
...
We have callbacks for that, they also do some checks and help ensure things are done
correctly. Only place where this is assumed not true is blenloader (since here we
may affect refcount of library IDs as well...).
2015-11-09 21:00:53 +01:00
2e2dc9b9e3
Refactor translation code out of blenfont
...
- Add blentranslation `BLT_*` module.
- moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`).
- moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-08-18 07:01:26 +10:00
9036fa6b2e
Fix buffer overrun lofting nurbs
2015-08-03 23:18:09 +10:00
559e1434d8
parenthisize macro args to avoid errors
2015-08-02 13:54:06 +10:00
ee1b1b9e59
Curve: change rules wrt active bezier
...
Activate the vertex even if only a single handle is selected
2015-07-09 14:52:01 +10:00
bbc4a92318
Curve selection, de-duplicate & cleanup
2015-07-09 14:39:24 +10:00
4a328a7689
EditCurve: move selection into own file
2015-07-09 00:09:26 +10:00
6057548058
Fix/Cleanup possibility to type insane values in 'add' operators options.
...
Our 'hard limit' values was too often max_int/float here, mis-typing could
lead to crash (or infinite hanging) of Blender, see e.g.
http://blender.stackexchange.com/questions/32790/blender-forces-computer-to-reboot-after-mistyping-extreme-value-for-resolution-i
2015-06-21 16:06:44 +02:00
e665a60a85
Fix T44854: Creating hooks from curve to objects doesn't work
...
The issue was introduced in e529882 by doing wrong range checking.
2015-05-27 13:08:17 +05:00
c3810c596e
Use PKey for edit-armature separate
...
As used already for mesh & curves.
Add confirmation menu for curve & armature,
since this isn't such a common operation and undoing leaves object data
(long term bug/todo to fix).
2015-05-27 09:56:50 +10:00
e529882be0
Fix second crashing part of T44497, out of bounds access to hook
...
modifier data.
Unfortunately seems like we also lose the hook mapping by doing this,
but this can be fixed later and is probably a separate issue.
2015-05-22 16:59:22 +02:00
097862cb26
GHash: avoid redundant casts
2015-05-11 12:39:39 +10:00
1dd1d286c6
Select nth option to skip steps
...
Patch T43752 @codemanx , added matching curve option.
2015-03-19 04:40:43 +11:00
95a1cc20dc
Fix crash extruding an empty curve
2015-03-10 18:22:08 +11:00
5520b8df4b
cleanup: double promotion
2015-02-27 14:52:58 +11:00
f9f04726e5
GHash: no need to malloc iterators
2015-02-06 15:34:36 +11:00
fca515838e
Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).
...
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
2015-01-26 16:59:24 +01:00
027361c898
Fix T41834: Ctrl+LMB, Extrude Curves 2+ splines
...
Extrude and Ctrl+LMB now support multiple selected vertices.
Also maintain active vertices.
D964 by Tyler Sliwkanich with own modifications
2015-01-26 21:08:43 +11:00
5d61cbf008
Curves: BKE_nurb_copy left duplicate arrays
...
While callers accounted for this, its quite error prone. Just NULL instead.
2015-01-26 18:22:54 +11:00
6f7b4a3a3e
Fix T42639, editcurve flags not getting restored on undo.
...
Error here could be reproduced by tweaking curve properties such as
2d-3d or fill type and undoing.
2014-11-20 19:09:50 +01:00
b7f5ab0cd3
ShapeKeys: Add BKE_keyblock_is_basis to check whether a given keyblock is used a basis by others.
...
Also fix stupid debug-only error in previous commit.
2014-11-17 11:19:54 +01:00
d526ef607d
Cleanup: rename BKE_key_convert/update to BKE_keyblock_convert/update.
...
We are handling a keyblock here, not a whole key(set). Names are alreay a bit confusing,
let's be consistent at least.
2014-11-17 11:19:54 +01:00
5c6e333780
UI Refactor T41640
...
Make the UI API more consistent and reduce confusion with some naming.
mainly:
- API function calls
- enum values
some internal static functions have been left for now
2014-11-10 23:06:54 +01:00
2c35bcb356
Cleanup: use SELECT flag
2014-10-28 18:39:43 +01:00
2f0bdcb306
Fix T41041: 'Delete keyframe' removes markers too
...
Operators that trigger UI events (but nothing else)
were using 'CANCELLED' making it impossible to tell if an invoke
function failed, or opened a menu.
2014-10-28 17:51:43 +01:00
e8f3fa99de
Support more object types scene-scale (on creation)
...
- lamp
- camera
- font
- empty & effector
Also fix inconsistency with apply transform
(modified shape-keys for meshes but not curve/lattice)
2014-09-01 21:01:11 +10:00
ddb843a1ac
Fix T41443: Separate bug with Curves & Hooks
...
This solves the crash, but indices might be wrong after the separation.
There are loads of other ways to confuse hook indices in both meshes and
curves, for now considering this a TODO.
2014-08-15 12:50:21 +06:00
2f2bf513e9
Revert "Fix T41226: Wrong Undo on curves and hooks"
...
This reverts commit e042c8428f .
Proper fix will come later, or be declared a TODO.
2014-08-01 12:30:41 +06:00
e042c8428f
Fix T41226: Wrong Undo on curves and hooks
2014-07-31 18:21:57 +06:00
00b29156e0
Defines: replace ELEM3-16 with ELEM(...), that can take varargs
2014-07-20 01:33:40 +10:00
397bc87486
Fix T41039: Hook modifier sometimes fails to retain correct bezier curve point assignment
2014-07-18 14:44:05 +06:00
543f7b7053
Fix wrong index update when removing CV points
2014-07-18 13:38:09 +06:00
a4d9c8f579
Code cleanup: casts, dead assignment & arg order.
2014-06-26 15:46:42 +10:00
d9de1b367e
Revert "Fix flickering when transform snapping in edit mode and cursor is"
...
Looks like the cleanest way to handle this is to no do bounding box collision
for edit mode at all. But this is easy to enforce
This reverts commit 7b5fe4f316 .
Conflicts:
source/blender/editors/transform/transform_snap.c
2014-06-18 18:20:55 +03:00
bf462149a6
BLI_bitmap: rename macros
...
- BLI_BITMAP_SET -> BLI_BITMAP_ENABLE
- BLI_BITMAP_CLEAR -> BLI_BITMAP_DISABLE
- BLI_BITMAP_GET -> BLI_BITMAP_TEST
- BLI_BITMAP_MODIFY -> BLI_BITMAP_SET
2014-06-14 00:47:12 +10:00
7b5fe4f316
Fix flickering when transform snapping in edit mode and cursor is
...
slightly outside the mesh.
Reported by Thomas Beck on irc. Issue here is that the mesh bounding box
changes as we are transforming the vertices. Solution is to collide
against the initial bounding box. Unfortunately the snapping functions
are made in a way that a lot of code needed to be tweaked here, but the
change should be straightforward and harmless (famous last words, I
know).
Ideally we might want to even increase the size of the bounding box a
little (as seen in screen space) to allow snapping even in cases where,
cursor is slightly outside the bounding box, but since this is not so
straightforward to do for all cases, at least for me, leaving this as
a TODO.
2014-06-12 01:43:38 +03:00
a1d286a699
Fix curve switch direction ignoring active vertex
2014-05-26 09:37:04 +10:00
d84af360ca
EditCurve: Replace -1 with CU_ACT_NONE define
2014-05-26 09:37:04 +10:00
eaf815f14a
Fix for curve having invalid active vertex after setting type
...
also allow passing NULL vertex to BKE_curve_nurb_vert_active_set
2014-05-26 09:35:32 +10:00
6edcff4fd2
Fix for nurbs surface merge didn't update key index
2014-04-29 19:56:15 +06:00
c67bd49e56
Code cleanup: use 'const' for arrays (editors)
2014-04-27 00:25:15 +10:00
a15b3c4d11
Code cleanup: use bool
2014-04-11 11:33:29 +10:00
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
f4a990bfcd
Fix for curve smooth ignoring cyclic
2014-03-28 09:26:45 +11:00
8480bb64ec
Code cleanup: style
2014-03-17 21:48:13 +11:00
2097e621ed
Code cleanup: use r_ prefix for return args
2014-03-16 03:26:23 +11:00
7b03eb56bd
Fix T39109: Vertices affected by Hook Modifiers change after "switch Direction" on Curves
...
Remapping hooks and vertex parent wasn't implemented for curves.
2014-03-12 15:46:24 +06:00