8 years agoMore UI message i18n fixes and improvements...
Bastien Montagne [Sun, 10 Mar 2013 17:42:08 +0000 (17:42 +0000)]
More UI message i18n fixes and improvements...
Fix for keyingsets tips, and make them (and a few others) findable by i18n messages extracting code (for some reasons, their bl_rna.description are void???).

8 years agoTexpaint refactor complete!
Antony Riakiotakis [Sun, 10 Mar 2013 17:40:55 +0000 (17:40 +0000)]
Texpaint refactor complete!

* Projection painting files reside in paint_image_proj.c
* 2d projection files reside in paint_image_2d.c
* Common operator/paint operation code resides in paint_image.c

All old code layout is out. Phew...Now we can at least concentrate on
each system separately when debugging this beast. We could even separate
the paint structs for 2d/projective more easily should we choose to do

8 years agoAdded menu entry for recursive hierarchy selec in outliner
Gaia Clary [Sun, 10 Mar 2013 17:19:03 +0000 (17:19 +0000)]
Added menu entry for recursive hierarchy selec in outliner

8 years agoMore UI message i18n fixes and improvements...
Bastien Montagne [Sun, 10 Mar 2013 16:55:01 +0000 (16:55 +0000)]
More UI message i18n fixes and improvements...
Rendering messages are now translatable.

8 years agoMore UI message i18n fixes and improvements...
Bastien Montagne [Sun, 10 Mar 2013 16:14:29 +0000 (16:14 +0000)]
More UI message i18n fixes and improvements...

8 years agoOpenGL: more work on fixed function lighting implementation as GLSL.
Brecht Van Lommel [Sun, 10 Mar 2013 15:38:23 +0000 (15:38 +0000)]
OpenGL: more work on fixed function lighting implementation as GLSL.

* Rename functions and move to own header.
* Add wrapper functions for glLight.
* Auto detect if we can use faster code for solid lighting.
* Various fixes for textured draw mode.

8 years agoMore UI message i18n fixes and improvements...
Bastien Montagne [Sun, 10 Mar 2013 14:57:19 +0000 (14:57 +0000)]
More UI message i18n fixes and improvements...

8 years agouse crosshair cursor for the ruler.
Campbell Barton [Sun, 10 Mar 2013 14:44:16 +0000 (14:44 +0000)]
use crosshair cursor for the ruler.

8 years agoBugfix #34365
Ton Roosendaal [Sun, 10 Mar 2013 14:30:24 +0000 (14:30 +0000)]
Bugfix #34365

Tiny tweak.

Dragging option (cursor change) for region dividers in editors was having an
un-even sensitivity hotspot. This conflicted with header buttons for example,
where the hotspot and bottons overlapped.

Now the hotspot is around the region-edge evenly.

8 years agoRigid body UI: add translation to materials' names (density collection).
Bastien Montagne [Sun, 10 Mar 2013 13:37:14 +0000 (13:37 +0000)]
Rigid body UI: add translation to materials' names (density collection).

8 years agofix for error loading ruler info back from greasepencil.
Campbell Barton [Sun, 10 Mar 2013 12:06:24 +0000 (12:06 +0000)]
fix  for error loading ruler info back from greasepencil.

8 years agoruler:
Campbell Barton [Sun, 10 Mar 2013 11:51:58 +0000 (11:51 +0000)]
- initial ruler point snaps by default now.
- header text drawing was delayed until the first point was added.

8 years agoBug report #34573
Ton Roosendaal [Sun, 10 Mar 2013 11:42:46 +0000 (11:42 +0000)]
Bug report #34573

User Preferences, Themes, UI: buttons to define own icon image now draws
greyed out, to show the option isn't working yet.

8 years agoFix #34562, leftover from own coordinate conversion refactoring. Also
Antony Riakiotakis [Sun, 10 Mar 2013 11:37:27 +0000 (11:37 +0000)]
Fix #34562, leftover from own coordinate conversion refactoring. Also
avoid extraneous OpenGL state chage.

8 years agoruler:
Campbell Barton [Sun, 10 Mar 2013 11:30:21 +0000 (11:30 +0000)]
- show header text for keyshortcuts.
- add Ctrl+C to copy the active ruler value.

8 years agocode cleanup: use '%.*d' with string formatting for variable length number.
Campbell Barton [Sun, 10 Mar 2013 11:02:21 +0000 (11:02 +0000)]
code cleanup: use '%.*d' with string formatting for variable length number.

8 years agoImprovements to addon-prefs key search suggested by Yang Niren.
Campbell Barton [Sun, 10 Mar 2013 07:18:43 +0000 (07:18 +0000)]
Improvements to addon-prefs key search suggested by Yang Niren.
- add accent_grave.
- strip the search string.
- add numpad numbers (currently these match regular numbers).

also remove unneeded forward declarations in path_util.c

8 years agopatch [#34586] Variable typo in glaDrawPixelsTexScaled
Campbell Barton [Sun, 10 Mar 2013 07:01:52 +0000 (07:01 +0000)]
patch [#34586] Variable typo in glaDrawPixelsTexScaled
from Andre D (andred)

xzoom was used where yzoom was meant to be used. Caused issues when xzoom and yzoom were not the same value.

8 years agocode cleanup:
Campbell Barton [Sun, 10 Mar 2013 06:40:19 +0000 (06:40 +0000)]
code cleanup:

- remove unused block from before blender was opensourced (BKE_library_make_local)
  noticed by Lawrence D'Oliveiro (ldo)
- remove text_idbutton() unused function.
- test_idbutton(name) was taking (name + 2), then checking 2 bytes before the pointer, this is error prone so better just take the name including the ID prefix.

8 years agoadd STREQ macro (commonly used macro like CLAMP, MAX2, STRINGIFY). Use for some areas...
Campbell Barton [Sun, 10 Mar 2013 06:18:03 +0000 (06:18 +0000)]
add STREQ macro (commonly used macro like CLAMP, MAX2, STRINGIFY). Use for some areas of the python api, bmesh.

8 years agopatch [#34103] check_for_dupid2.patch
Campbell Barton [Sun, 10 Mar 2013 05:58:09 +0000 (05:58 +0000)]
patch [#34103] check_for_dupid2.patch
from Lawrence D'Oliveiro (ldo)

check_for_dupid comments:
- correct comment about in_use array
- note name-truncation code will never be executed

Added asserts to ensure comments are correct - ideasman42.

8 years agopatch [#34103] check_for_dupid.patch
Campbell Barton [Sun, 10 Mar 2013 05:46:24 +0000 (05:46 +0000)]
patch [#34103] check_for_dupid.patch
from Lawrence D'Oliveiro (ldo)

- more comments
- more uses of bool type
- define symbol for length of in_use array in check_for_dupid

8 years agostyle cleanup: whitespace
Campbell Barton [Sun, 10 Mar 2013 05:19:29 +0000 (05:19 +0000)]
style cleanup: whitespace

8 years agopatch [#34103] path_util_split_name_num.patch
Campbell Barton [Sun, 10 Mar 2013 05:11:18 +0000 (05:11 +0000)]
patch [#34103] path_util_split_name_num.patch
from Lawrence D'Oliveiro (ldo)

Simplify implementation of BLI_split_name_num

- With some changes of my own to avoid second call to strlen()

8 years agopatch [#34103] path_util_cleanup_path.patch
Campbell Barton [Sun, 10 Mar 2013 04:43:15 +0000 (04:43 +0000)]
patch [#34103] path_util_cleanup_path.patch
from Lawrence D'Oliveiro

Improve implementation of BLI_cleanup_path, including making it behave as documented.

"/../home/me" would become "home/me" rather then "/home/me"

Also remove redundant BLI_strncpy()

8 years ago* Cleanup: collapse unneeded paint 2d function to the caller. Also, new
Antony Riakiotakis [Sun, 10 Mar 2013 02:30:53 +0000 (02:30 +0000)]
* Cleanup: collapse unneeded paint 2d function to the caller. Also, new
code now does not use painter_2d_paint at all. Made sure the approprate
variables of painter_2d are still initialized (They may be refactored to
become part of the ImagePaintState struct)

* Enable pressure control for new code path in texture paint. This revealed a bug, also present in blender 2.66: Size pressure is broken.
This was pretty interesting for me because it indicates that we could support
dynamic size in texture paint: (See anchored brushes)

8 years agoTime to start reaping the benefits of code unification. Support for
Antony Riakiotakis [Sun, 10 Mar 2013 00:58:09 +0000 (00:58 +0000)]
Time to start reaping the benefits of code unification. Support for
pressure spacing across all paint systems (was supported only for
texture painting earlier). Also, switch paint code to use the new code
path from now on. No shift-Lclick required anymore.

8 years agoCycles / OSL:
Thomas Dinges [Sun, 10 Mar 2013 00:42:47 +0000 (00:42 +0000)]
Cycles / OSL:
* More small improvements: return immediately, and use "else if".

8 years agoCycles / OSL:
Thomas Dinges [Sun, 10 Mar 2013 00:11:52 +0000 (00:11 +0000)]
Cycles / OSL:
* Avoid some conditional branches for the Noise texture and return immediately.

8 years agocode cleanup: make bmesh var names more consistent
Campbell Barton [Sat, 9 Mar 2013 17:12:24 +0000 (17:12 +0000)]
code cleanup: make bmesh var names more consistent

8 years agocode cleanup:
Campbell Barton [Sat, 9 Mar 2013 16:19:07 +0000 (16:19 +0000)]
code cleanup:
- use BM_ITER_* macros in more places.
- avoid sign int conversion when calling EDBM_backbuf_check()

8 years agominor edits to r55134 (recursive outliner select).
Campbell Barton [Sat, 9 Mar 2013 15:51:36 +0000 (15:51 +0000)]
minor edits to r55134 (recursive outliner select).
- loop over scene bases rather then looping over all objects, then looking up bases.
- shuffle checks so slow ones are last.
- rather then having own behavior for recursive select, do the regular operation,
  then apply the result recursively afterwards.

8 years agoadd inline function mul_project_m4_v3_zfac() to get the z-depth value from a vector...
Campbell Barton [Sat, 9 Mar 2013 15:39:24 +0000 (15:39 +0000)]
add inline function mul_project_m4_v3_zfac() to get the z-depth value from a vector & mat4x4

8 years agoBlender Anim player fixes:
Ton Roosendaal [Sat, 9 Mar 2013 14:57:06 +0000 (14:57 +0000)]
Blender Anim player fixes:

- RGBA images (without alpha) now don't draw with alpha blending enabled
- Checkerboard backdrop for alpha images now shows on size of image
- Window always clears now, in very dark grey (so you can see black)
- On resizing window, the aspect of image is being kept, keeping the
  image always visible within the window frame
- Image now centers OK.
- On pause, playback now halts (it was drawing same image all the time)

8 years agobmesh operator 'contextual_create' wasn't flagging single faces that were created...
Campbell Barton [Sat, 9 Mar 2013 14:42:10 +0000 (14:42 +0000)]
bmesh operator 'contextual_create' wasn't flagging single faces that were created (caused glitch in some cases with recent create-select functionality).

8 years agobmesh: face creation from a single selected vertex/edge, now extends the selection...
Campbell Barton [Sat, 9 Mar 2013 14:14:20 +0000 (14:14 +0000)]
bmesh: face creation from a single selected vertex/edge, now extends the selection along wire/boundary edges and makes a face.
Selection is specifically so you can continuously fill in holes by tapping the Fkey.

Similar functionality to the F2 addon, however the mouse location isn't used.

8 years agoFix for recent compo border commit
Sergey Sharybin [Sat, 9 Mar 2013 13:44:09 +0000 (13:44 +0000)]
Fix for recent compo border commit

Viewer operations shall be aware of border as well, otherwise
CPU would be busy for a while full compo isn't done for just
a small preview image in a node.

8 years agoOutliner: Added recursive select/deselect (CTRL+LMB) and extend (CTRL+SHIFT+LMB)
Gaia Clary [Sat, 9 Mar 2013 13:13:04 +0000 (13:13 +0000)]
Outliner: Added recursive select/deselect (CTRL+LMB) and extend (CTRL+SHIFT+LMB)

8 years agocode cleanup: was using var named 'in' for output.
Campbell Barton [Sat, 9 Mar 2013 11:55:12 +0000 (11:55 +0000)]
code cleanup: was using var named 'in' for output.

8 years agocode cleanup: move runtime var zfac out of RegionView3D. rename initgrabz() -> ED_vie...
Campbell Barton [Sat, 9 Mar 2013 11:40:42 +0000 (11:40 +0000)]
code cleanup: move runtime var zfac out of RegionView3D. rename initgrabz() -> ED_view3d_calc_zfac() and have it return the zfac to use.

8 years agoUse poroper release for images buffers acquired from an Image ID
Sergey Sharybin [Sat, 9 Mar 2013 11:18:01 +0000 (11:18 +0000)]
Use poroper release for images buffers acquired from an Image ID
when drawing viewport background images.

8 years agoFix #34574: Empty Movie Clip Editor crash on select
Sergey Sharybin [Sat, 9 Mar 2013 10:52:43 +0000 (10:52 +0000)]
Fix #34574: Empty Movie Clip Editor crash on select

8 years agoruler3d: replace ED_view3d_cursor3d_position() with lower level function view3d_get_v...
Campbell Barton [Sat, 9 Mar 2013 10:28:28 +0000 (10:28 +0000)]
ruler3d: replace ED_view3d_cursor3d_position() with lower level function view3d_get_view_aligned_coordinate()

8 years agocomment unused BLI_move() function, also fixed error where it would delete the file...
Campbell Barton [Sat, 9 Mar 2013 09:52:38 +0000 (09:52 +0000)]
comment unused BLI_move() function, also fixed error where it would delete the file even if renaming failed.
- found when testing recursive_operation().

8 years agopatch [#34103] fileops_recursive_operation.patch
Campbell Barton [Sat, 9 Mar 2013 09:38:27 +0000 (09:38 +0000)]
patch [#34103] fileops_recursive_operation.patch
from Lawrence D'Oliveiro (ldo)

Fix potential memory leaks in recursive_operation while simplifying cleanup logic.

8 years agoAdded Recursive select/deselect to outliner (CTRL+LMB)
Gaia Clary [Sat, 9 Mar 2013 07:17:35 +0000 (07:17 +0000)]
Added Recursive select/deselect to outliner (CTRL+LMB)

8 years agoremove unneeded string formatting for bli_adddirstrings(), noted by Lawrence D'Oliveiro.
Campbell Barton [Sat, 9 Mar 2013 06:26:46 +0000 (06:26 +0000)]
remove unneeded string formatting for bli_adddirstrings(), noted by Lawrence D'Oliveiro.

8 years agouse 'bool' for BLI_/BKE_ functions.
Campbell Barton [Sat, 9 Mar 2013 05:35:49 +0000 (05:35 +0000)]
use 'bool' for BLI_/BKE_ functions.

8 years agocode cleanup: favor braces when blocks have mixed brace use.
Campbell Barton [Sat, 9 Mar 2013 03:46:30 +0000 (03:46 +0000)]
code cleanup: favor braces when blocks have mixed brace use.

8 years agoexpose obrel_is_recursive_child in BKE_object.h and rename to BKE_object_is_child_rec...
Campbell Barton [Sat, 9 Mar 2013 03:34:01 +0000 (03:34 +0000)]
expose obrel_is_recursive_child in BKE_object.h and rename to BKE_object_is_child_recursive()

8 years agocode cleanup: use bool's for snapping functions.
Campbell Barton [Fri, 8 Mar 2013 18:28:26 +0000 (18:28 +0000)]
code cleanup: use bool's for snapping functions.

8 years agochanges to ruler
Campbell Barton [Fri, 8 Mar 2013 18:17:12 +0000 (18:17 +0000)]
changes to ruler
- click-drag adds a ruler if there are none.
- pressing enter stores the ruler for re-use when activating again (saves as a grease-pencil layer).
- add to toolbar.

8 years agoadd delete key for removing active ruler.
Campbell Barton [Fri, 8 Mar 2013 16:53:00 +0000 (16:53 +0000)]
add delete key for removing active ruler.

8 years agoFix to BLF_pgettext, which was returning "" when passed NULL msgid... Never noticed...
Bastien Montagne [Fri, 8 Mar 2013 15:34:23 +0000 (15:34 +0000)]
Fix to BLF_pgettext, which was returning "" when passed NULL msgid... Never noticed any problem, but it looks it could produce strange UI issues (like deactivated buttons), and it was not consistent anyway!

Thanks to S. Lockal for spotting the issue and providing a patch.

8 years agoadd ruler snapping vert/edge/face (Holding Ctrl)
Campbell Barton [Fri, 8 Mar 2013 15:15:14 +0000 (15:15 +0000)]
add ruler snapping vert/edge/face (Holding Ctrl)

8 years agoavoid floating point exceptions in snapObjects(), was attempting to scale up FLT_MAX.
Campbell Barton [Fri, 8 Mar 2013 15:10:57 +0000 (15:10 +0000)]
avoid floating point exceptions in snapObjects(), was attempting to scale up FLT_MAX.

8 years agoFeature request:
Ton Roosendaal [Fri, 8 Mar 2013 13:03:04 +0000 (13:03 +0000)]
Feature request:

Blender's anim player (blender -a) now allows drop of image or movie file.
It then restarts itself completely (close window, open new).

8 years agoApplying similar optimisations as r.55092 for Animation Data
Joshua Leung [Fri, 8 Mar 2013 10:59:43 +0000 (10:59 +0000)]
Applying similar optimisations as r.55092 for Animation Data

8 years agoAdding include for NULL define in c++
Ton Roosendaal [Fri, 8 Mar 2013 09:09:48 +0000 (09:09 +0000)]
Adding include for NULL define in c++

8 years ago[#28352]3dsmax preset, patch by Nik Prodanov, this provides both an interaction prese...
Michael Fox [Fri, 8 Mar 2013 08:57:11 +0000 (08:57 +0000)]
[#28352]3dsmax preset, patch by Nik Prodanov, this provides both an interaction preset and a keymap preset for those migrating from 3dsmax

8 years agocode cleanup: 0 --> NULL
Campbell Barton [Fri, 8 Mar 2013 06:32:00 +0000 (06:32 +0000)]
code cleanup: 0 --> NULL

8 years agofix for typo in skin modifier that resulted in incorrect vertex weights.
Campbell Barton [Fri, 8 Mar 2013 04:31:21 +0000 (04:31 +0000)]
fix for typo in skin modifier that resulted in incorrect vertex weights.

8 years agostyle cleanup
Campbell Barton [Fri, 8 Mar 2013 04:00:06 +0000 (04:00 +0000)]
style cleanup

8 years agoBugfix [#34560] Wrong angle for text in Horizontal mode of Properties space
Joshua Leung [Fri, 8 Mar 2013 03:42:16 +0000 (03:42 +0000)]
Bugfix [#34560] Wrong angle for text in Horizontal mode of Properties space

Rotation angle for text was still in degrees not radians

8 years agofix null pointer dereference in BM_edge_is_contiguous() (own code).
Campbell Barton [Fri, 8 Mar 2013 03:07:32 +0000 (03:07 +0000)]
fix null pointer dereference in BM_edge_is_contiguous() (own code).

8 years ago[#34541] Sketching bones created bones with 0 radius for envelope
Joshua Leung [Fri, 8 Mar 2013 02:23:43 +0000 (02:23 +0000)]
[#34541] Sketching bones created bones with 0 radius for envelope

This commit is just a stopgap measure (i.e. it fixes the symptoms but not the
real underlying cause) of this bug. For some reason, iter->size is nearly always
an "effectively zero but not truly zero" value. Hence, the envelope sizes would
get adjusted, but would be scaled to an impossibly small value (taken from

From my investigations so far, iter->size is mostly either set to (or left as)
0, except in a rare case when dealing with volume snapping, when the values
somehow get propagated there from various intermediate data points. But, that
almost never works either.

8 years agoImproving warnings when keyframing fails for IKEY over a button
Joshua Leung [Fri, 8 Mar 2013 02:15:08 +0000 (02:15 +0000)]
Improving warnings when keyframing fails for IKEY over a button

Now, instead of silently failing, an error message saying that the property
cannot be animated is displayed

8 years agoBugfixes: [#34394] and [#31843] Visual Keying not working for bones
Joshua Leung [Thu, 7 Mar 2013 23:28:23 +0000 (23:28 +0000)]
Bugfixes: [#34394] and [#31843] Visual Keying not working for bones

Big thanks to Josef Meier (jomeier) for finding the fix!

It turns out that this was a case of variable shadowing that had been overlooked
and compilers were not warning about.

8 years agoOSX/gcc-4.6: workaround a compilerbug, use apple-gcc instead
Jens Verwiebe [Thu, 7 Mar 2013 22:12:23 +0000 (22:12 +0000)]
OSX/gcc-4.6: workaround a compilerbug, use apple-gcc instead

8 years agomath: Use len_v3() instead of normalize_v3() for area calculation
Sergej Reich [Thu, 7 Mar 2013 19:16:02 +0000 (19:16 +0000)]
math: Use len_v3() instead of normalize_v3() for area calculation

We only need the length, avoids unnecessary calculations.

8 years agoGPencil feature request:
Ton Roosendaal [Thu, 7 Mar 2013 18:01:10 +0000 (18:01 +0000)]
GPencil feature request:

Allow layers to be moved up and down, so you can control drawing order nicer.

8 years agobullet: Update to current svn, r2636
Sergej Reich [Thu, 7 Mar 2013 17:53:16 +0000 (17:53 +0000)]
bullet: Update to current svn, r2636

Apply patches in patches directory, remove patches that were applied
If you made changes without adding a patch, please check.

Fixes [#32233] exporting bullet format results in corrupt files.

8 years agoFix warnings in stubs.c
Sergej Reich [Thu, 7 Mar 2013 17:52:51 +0000 (17:52 +0000)]
Fix warnings in stubs.c

8 years agoFix building with blenderplayer
Sergej Reich [Thu, 7 Mar 2013 17:52:48 +0000 (17:52 +0000)]
Fix building with blenderplayer

8 years agoBorder for compositor viewer node feature
Sergey Sharybin [Thu, 7 Mar 2013 17:47:30 +0000 (17:47 +0000)]
Border for compositor viewer node feature

This adds border option to compositor, which affects on
a backdrop and viewer nodes, which is useful for faster
previews and tweaks.

Final compositing still happens for the whole frame, but
if it'll be needed it's not so difficult to support it
as well.

To use border there's Ctrl-B shortcut in the compositor
editor, which i used to define region you want to restrict
compositing to. There's also "Viewer Border" option in
the N-panel in case you'll want to disable border

Some areas could be cleaned a bit, like ideally it shall
not be viewer image clearing in viewer_border_update RNA
callback, but currently it's not so much clear how to
make it the same fast as simple memset and glue it
somehow to compositor. Will think of nicer solution a
bit later.

8 years agoSpeedup for Grease Pencil animators.
Ton Roosendaal [Thu, 7 Mar 2013 16:57:53 +0000 (16:57 +0000)]
Speedup for Grease Pencil animators.

Saving and loading gpencil was using different order for the individual list items.
On a 120 Mb gpencil project (yes, animators!) loading time went down from 1 minute
to a second or two.

Note that this to have effect, you need to save once.

Developer note: check this commit, it uses a new writelist function. You can
speedup stuff tremendously with keeping saved and read data in sync.

8 years agoruler arc draw clamps to line length and simplify projection.
Campbell Barton [Thu, 7 Mar 2013 16:12:36 +0000 (16:12 +0000)]
ruler arc draw clamps to line length and simplify projection.

8 years agoTexture paint refactoring commit
Antony Riakiotakis [Thu, 7 Mar 2013 12:11:38 +0000 (12:11 +0000)]
Texture paint refactoring commit

This is as close as I can get to keeping the old code intact. After this
commit, I will have to change existing code paths, making testing of
functionality harder.


* Keep only projective texturing code in paint_image_proj.c
* Move 2D code to paint_image_2d.c. This needed the introduction of
allocation/cleanup functions for the relevant structures.
* Common code interface for both modes stays in paint_image.c (which
still includes all old code, system should work as it did with the
exception of non-projective 3D paint mode) and is made public. This is
not a lot of code, only rectangle invalidation and undo system.
* Changed the naming in the new code slightly: imapaint_ prefixed functions refer to
common functions used by both systems, paint_2d_ prefixed to 2d
painting. There will be an interface for the projection painting as
well. Probably there is some leftover naming conversions to do.


* Move operator init/exec/modal to common interface file
* Get rid of old BKE_brush_painter_paint, now brush_painter_2d_paint.
All code uses stroke system for the stroke management
* Write space pressure management for the paint stroke system (for other
systems to access as well :) )
* Move texture paint tablet presssure exception code for old bugs to
stroke system (makes me wonder...aren't other systems also influenced by
these pressure issues?) or up in the function hierarchy inside texture
paint. This code is still not there so users with tablets may notice
some issues.
* possibly change other systems to pre-multiply pressure with the
relevant influenced attributes in the stroke function. This could get
tricky though and it's possible that it could backfire.

8 years agoruler/protractor for 3d viewport (apart of 3d printing features). work-in-progress.
Campbell Barton [Thu, 7 Mar 2013 11:53:11 +0000 (11:53 +0000)]
ruler/protractor for 3d viewport (apart of 3d printing features). work-in-progress.

- activate from spacebar search (3D Ruler)
- ctrl-click adds new rulers
- clicking in the middle of a ruler, turns into protractor, dragging out of view snaps back to ruler.

8 years agoCollada fixed Collada ID name for exported animation curves
Gaia Clary [Thu, 7 Mar 2013 10:26:04 +0000 (10:26 +0000)]
Collada fixed Collada ID name for exported animation curves

8 years agoavoid calling glGetFloatv() twice when UI_RB_ALPHA is enabled with uiRoundBox()
Campbell Barton [Thu, 7 Mar 2013 06:46:50 +0000 (06:46 +0000)]
avoid calling glGetFloatv() twice when UI_RB_ALPHA is enabled with uiRoundBox()

8 years agouse bool for rna funcs.
Campbell Barton [Thu, 7 Mar 2013 02:44:55 +0000 (02:44 +0000)]
use bool for rna funcs.

8 years agoCollada: Added option for how rot,loc,trans data is exported (improves flexibility...
Gaia Clary [Wed, 6 Mar 2013 23:21:52 +0000 (23:21 +0000)]
Collada: Added option for how rot,loc,trans data is exported (improves flexibility for support of other 3D tools)

8 years agoSupport position jittering on new texpaint code using the stroke system.
Antony Riakiotakis [Wed, 6 Mar 2013 22:54:44 +0000 (22:54 +0000)]
Support position jittering on new texpaint code using the stroke system.

8 years agoChange !BLI_ghashIterator_isDone to BLI_ghashIterator_notDone. It is
Antony Riakiotakis [Wed, 6 Mar 2013 20:55:04 +0000 (20:55 +0000)]
Change !BLI_ghashIterator_isDone to BLI_ghashIterator_notDone. It is
always used in that context so we can at least avoid reverting it twice

8 years agoTypo fix to fix global delete with Shift-X as it was before r43416
Sv. Lockal [Wed, 6 Mar 2013 20:26:28 +0000 (20:26 +0000)]
Typo fix to fix global delete with Shift-X as it was before r43416

8 years agoTexture paint refactoring commit
Antony Riakiotakis [Wed, 6 Mar 2013 19:54:43 +0000 (19:54 +0000)]
Texture paint refactoring commit

Adding new file paint_image_proj.c which includes the projective texture painting part of texture
painting, using the stroke system. To access the new code path use Shift-LClick.
The new code path still is problematic with tablet pressure and I will be looking
into ways to unify this across paint systems next.

The old code is still present and can be accessed by regular Lclick as usual.

Also removed 3D (non-projective) painting from 3D viewport.

* Add pressure influence code to stroke, remove from every other paint
system code, including texpaint.
* Put UnifiedPaintSettings update in PaintStroke code.

8 years agoTracking dopesheet fixes:
Sergey Sharybin [Wed, 6 Mar 2013 18:01:24 +0000 (18:01 +0000)]
Tracking dopesheet fixes:

- Dopesheet need to be updated when adding or switching
  between objects.
- After removing object it shall also be tagged for update,
  otherwise crash will likely happen.

8 years agofix for error building on big-endian.
Campbell Barton [Wed, 6 Mar 2013 16:56:28 +0000 (16:56 +0000)]
fix for error building on big-endian.

8 years agofix for bug where array buttons would use -1 index, causing an out-of-bounds check...
Campbell Barton [Wed, 6 Mar 2013 16:32:05 +0000 (16:32 +0000)]
fix for bug where array buttons would use -1 index, causing an out-of-bounds check on an array.
added assert so this wont happen again.

8 years agoadd asserts for passing negative index values to RNA functions which don't support...
Campbell Barton [Wed, 6 Mar 2013 15:38:11 +0000 (15:38 +0000)]
add asserts for passing negative index values to RNA functions which don't support them.

8 years agoAlternate fix for bug [#34369], where invalid polygon normals could be saved in the...
Campbell Barton [Wed, 6 Mar 2013 03:58:38 +0000 (03:58 +0000)]
Alternate fix for bug [#34369], where invalid polygon normals could be saved in the mesh data and in the file.

This was from initial BMesh merge, but should not have been added in since face normals are calculated and stored in the DerivedMesh.

Toggling editmode would remove poly-normals so its unlikely anything relies on this custom-data.

8 years agoWoops! Fix for previous F-Curve path fix commit
Joshua Leung [Wed, 6 Mar 2013 03:53:56 +0000 (03:53 +0000)]
Woops! Fix for previous F-Curve path fix commit

Trying to rename a valid F-Curve would crash as no RNA property was set, but
*prop still had an uninitialised value.

8 years agocode cleanup: quiet warnings for recent weight paint theme addition.
Campbell Barton [Wed, 6 Mar 2013 02:57:31 +0000 (02:57 +0000)]
code cleanup: quiet warnings for recent weight paint theme addition.

8 years agocode cleanup: quiet float/double conversion warnings.
Campbell Barton [Wed, 6 Mar 2013 02:52:34 +0000 (02:52 +0000)]
code cleanup: quiet float/double conversion warnings.

8 years agoBugfix [#32492] - Part 3: Error filter now includes drivers where there are
Joshua Leung [Wed, 6 Mar 2013 01:59:09 +0000 (01:59 +0000)]
Bugfix [#32492] - Part 3: Error filter now includes drivers where there are
errors with the variables/targets, even if those errors are for variables which
aren't used (and are hence "harmless" errors)

This means that the filter can be truly useful for helping locate things that
need "cleaning up". For example, previously, there could still have been drivers
where there were some of these "harmless" errors would emit warnings, but would
otherwise appear perfectly functional.

The implementation here uses a slightly slower method of checking any errors in
these driver vars. However, it's no slower than what's done when these are
evaluated, and should be less error prone than introducing yet another type of
error tagging for this one case. The problem here is that the "driver invalid"
flag, which is usually set when a target has errors, gets cleared by the
pydrivers code if nothing went wrong when evaluating the expression. Removing
this clearing step will probably open a can of worms, so unless this method
proves to be far too slow, this simpler fix will do.

8 years agoExperimental Feature: Ctrl-Click on the "name" of a broken F-Curve now allows
Joshua Leung [Wed, 6 Mar 2013 01:44:12 +0000 (01:44 +0000)]
Experimental Feature: Ctrl-Click on the "name" of a broken F-Curve now allows
you to fix the RNA Path in-place

For F-Curves that are disabled or marked as having errors because their paths
are invalid (indicated with a red line underneath their names), it is now
possible to use the Ctrl-Click renaming functionality to bring up a textbox for
fixing the offending RNA Path "in place" (i.e. in the channels list) without
having to bring up the properties region first.

This makes it easier to fix the paths if you know what you're doing. However,
caution is still advised for most people. In particular, be aware that this uses
a separate "RNA Array Index" for indexing into array properties (i.e. location,
rotation, color) which will not be shown here, and can only be edited from the
panel (or datablocks editor/scripts).

8 years agoFeature Request: "Show Errors" Filter for Anim Editors now works for
Joshua Leung [Wed, 6 Mar 2013 00:56:58 +0000 (00:56 +0000)]
Feature Request: "Show Errors" Filter for Anim Editors now works for
F-Curves/Animation as well as Drivers

This is useful for tracking down invalid F-Curves which might need to have their
paths fixed, or perhaps to remove F-Curves for controls which no longer exist in
a new rig.

8 years agoThe imperative per-few-days blenderplayer fix.
Antony Riakiotakis [Tue, 5 Mar 2013 23:21:10 +0000 (23:21 +0000)]
The imperative per-few-days blenderplayer fix.

8 years agoBugfix [#34519] deleted cache after duplicating an object with baked simulation
Daniel Genrich [Tue, 5 Mar 2013 22:58:13 +0000 (22:58 +0000)]
Bugfix [#34519] deleted cache after duplicating an object with baked simulation