7 years agoFix for saving startup file ignoring editmode/sculpt edits
Campbell Barton [Mon, 20 Jan 2014 01:12:45 +0000 (12:12 +1100)]
Fix for saving startup file ignoring editmode/sculpt edits

7 years agoCode Cleanup: remove redundant NULL checks and add function attributes
Campbell Barton [Mon, 20 Jan 2014 00:13:53 +0000 (11:13 +1100)]
Code Cleanup: remove redundant NULL checks and add function attributes

7 years agoFix for flag not being restored in BKE_vfont_to_curve_ex
Campbell Barton [Sun, 19 Jan 2014 23:44:11 +0000 (10:44 +1100)]
Fix for flag not being restored in BKE_vfont_to_curve_ex

7 years agoRevert "Cycles: mix hair minimum width code with SSE intersection code"
Sv. Lockal [Sun, 19 Jan 2014 20:23:17 +0000 (00:23 +0400)]
Revert "Cycles: mix hair minimum width code with SSE intersection code"

Code is not equivalent in min/max part (SSE works with NaNs differently), this results in black dots with cardinal_curve hair.

This reverts commit b886c26d1f70d512b4f68975142372e3bee81c89.

7 years agoFix last part of T38244: memory leak when scaling any panel
Bastien Montagne [Sun, 19 Jan 2014 13:57:48 +0000 (14:57 +0100)]
Fix last part of T38244: memory leak when scaling any panel

Issue is not noticeable with default font, but i18n one can use more than 500Mo of ram when cached in undreds of different sizes.

Campbell had already done most of the work in rBa780e7f3f09f and rB6b283f116829, just had to call BLF_cache_clear() in _exit funcs of VIEW2D_zoom & co operators.

7 years agoDocs: doxygen file descriptions for BLF, GPU and WM
Campbell Barton [Sun, 19 Jan 2014 12:14:24 +0000 (23:14 +1100)]
Docs: doxygen file descriptions for BLF, GPU and WM

7 years agoIncrease maximum allowed amount of points for Splines in both U and V directions
Simon Repp [Sat, 18 Jan 2014 18:18:53 +0000 (00:18 +0600)]
Increase maximum allowed amount of points for Splines in both U and V directions

Increase the maximum allowed amount of points in a spline from currently 32,767 (short) to 2,147,483,647 (int).
Change variables that get assigned the value from pntsu/pntsv to int type all over the codebase.
Change function parameters that previously passed the count as short to int type as well.


Reviewed By: sergey

Differential Revision:

7 years agoSend sequencer render context as const pointer rather than as value
Sergey Sharybin [Sat, 18 Jan 2014 18:16:19 +0000 (00:16 +0600)]
Send sequencer render context as const pointer rather than as value

No functional changes just creepy to send rather huge structure by value.

7 years agoMake it possible to hide/unhide a node during node transform operations.
Monique Dewanchand [Sat, 18 Jan 2014 17:20:21 +0000 (18:20 +0100)]
Make it possible to hide/unhide a node during node transform operations.
During drag the H key can be used to toggle the hide flag of the selected nodes.
This makes it easier to 'attach' nodes to available links in narrow places.

7 years Fix output conf for CMake (specifying root dirs for OIIO/OCIO is...
Bastien Montagne [Sat, 18 Jan 2014 15:03:23 +0000 (16:03 +0100)] Fix output conf for CMake (specifying root dirs for OIIO/OCIO is not needed when you use default path, but mandatory otherwise, simpler to always give them).

Spotted by dingto on IRC, thanks!

7 years agoCMake: Fix info message for Cycles standalone.
Thomas Dinges [Sat, 18 Jan 2014 14:19:49 +0000 (15:19 +0100)]
CMake: Fix info message for Cycles standalone.

7 years agoCode Cleanup: py script float comparisons
Campbell Barton [Fri, 17 Jan 2014 22:13:51 +0000 (09:13 +1100)]
Code Cleanup: py script float comparisons

7 years agoMath: Code cleanup
Sergej Reich [Fri, 17 Jan 2014 19:44:34 +0000 (20:44 +0100)]
Math: Code cleanup

Remove stray #undef directives.

7 years agoRigidbody: Add missing properties to "Copy Rigid Body Settings" operator
Sergej Reich [Fri, 17 Jan 2014 19:20:46 +0000 (20:20 +0100)]
Rigidbody: Add missing properties to "Copy Rigid Body Settings" operator

7 years agoFix T36190: Rigid Body bake to keyframes bakes wrong the rotations.
Sergej Reich [Fri, 17 Jan 2014 19:08:08 +0000 (20:08 +0100)]
Fix T36190: Rigid Body bake to keyframes bakes wrong the rotations.

Make sure that quaternions are compatible.

7 years agoBlender Internal: Tweak GLSL preview of the spot lamp to use shadow buffer also for...
IRIE Shinsuke [Fri, 17 Jan 2014 12:02:00 +0000 (21:02 +0900)]
Blender Internal: Tweak GLSL preview of the spot lamp to use shadow buffer also for ray shadows, to solve inconsistency with the sun lamp.

7 years agoUI: tweak menu padding and make separator line more visible.
Brecht Van Lommel [Thu, 16 Jan 2014 23:23:00 +0000 (00:23 +0100)]
UI: tweak menu padding and make separator line more visible.

Adds some padding to the left of the icon, adds more space around the separator
line and make it more visible, and add some spacing at the top and bottom of
the menu. Ref T37794

Reviewed By: dingto, billrey

Differential Revision:

7 years agoIcons: make inkscape svg to png conversion work with on OS X.
Brecht Van Lommel [Fri, 17 Jan 2014 15:50:11 +0000 (16:50 +0100)]
Icons: make inkscape svg to png conversion work with on OS X.

7 years agoUI/Modifiers: add missing icon for Wireframe modifier
Simon Repp [Fri, 17 Jan 2014 15:31:37 +0000 (16:31 +0100)]
UI/Modifiers: add missing icon for Wireframe modifier

Reviewed By: carter2422, billrey, plasmasolutions, brecht

Differential Revision:

7 years agoFix T38141: wrong add reroute node location with shift LMB cut on OS X / retina.
Brecht Van Lommel [Fri, 17 Jan 2014 14:58:28 +0000 (15:58 +0100)]
Fix T38141: wrong add reroute node location with shift LMB cut on OS X / retina.

7 years agoSequencer: don't cache frames during proxy rebuild job
Sergey Sharybin [Fri, 17 Jan 2014 14:03:48 +0000 (20:03 +0600)]
Sequencer: don't cache frames during proxy rebuild job

7 years agoOSX/Cycles: tentative fix for avx, try use the compiler that is default on desired...
Jens Verwiebe [Fri, 17 Jan 2014 13:56:16 +0000 (14:56 +0100)]
OSX/Cycles: tentative fix for avx, try use the compiler that is default on desired xcode version.
Atm. it is only verified to work with clang 5.0, so either this works too with llvm-gcc or apple gcc,
or we have to rise the requirements for osx.

7 years agoFollowup to d03e768: was wrongly (void) non-existing argument
Sergey Sharybin [Fri, 17 Jan 2014 13:45:13 +0000 (19:45 +0600)]
Followup to d03e768: was wrongly (void) non-existing argument

7 years agoRemove confusing recalc flag from simplify update callback
Sergey Sharybin [Fri, 17 Jan 2014 13:43:26 +0000 (19:43 +0600)]
Remove confusing recalc flag from simplify update callback

PSYS_RECALC_CHILD is not handled by handle_object_update at
all so it was rather pointless to set this flag.

Double-checked with Brecht.

7 years agoFix T38260: Missing object update with two visible scenes
Sergey Sharybin [Fri, 17 Jan 2014 12:51:31 +0000 (18:51 +0600)]
Fix T38260: Missing object update with two visible scenes

It was an issue with early object update check which was
screwing up for second scene because of first one reset
ID recalc flags.

From the comment in the code about this:

  We need to check all visible scenes, otherwise resetting
  OB_ID changed flag will only work fine for first scene of
  multiple visible and all the rest will skip update.

  This could also lead to wrong behavior scene update handlers
  because of missing ID datablock changed flags.

  This is a bit of a bummer to allocate list here, but likely
  it wouldn't become too much bad because it only happens when
  objects were actually changed.

7 years agoOops! Should have double checked before pushing that last commit.
Joshua Leung [Fri, 17 Jan 2014 12:41:18 +0000 (01:41 +1300)]
Oops! Should have double checked before pushing that last commit.

7 years agoFix T38157: Rigid body, crazy f-curves after bake to keyframes
Joshua Leung [Fri, 17 Jan 2014 12:38:20 +0000 (01:38 +1300)]
Fix T38157: Rigid body, crazy f-curves after bake to keyframes

A logic error meant that the wrong "previous rotation" values were being used
when decomposing the rigidbody results back to transform channels. Instead of
using the previous values for the object in question, it was actually using
the rotation value of the previous object that was evaluated.

7 years agoSimilar reshuffling of theme settings order for DopeSheet to ensure pairs end up...
Joshua Leung [Fri, 17 Jan 2014 04:06:02 +0000 (17:06 +1300)]
Similar reshuffling of theme settings order for DopeSheet to ensure pairs end up on same rows

7 years agoReshuffle Graph Editor theme settings to get pairs of settings to line up
Joshua Leung [Fri, 17 Jan 2014 02:49:20 +0000 (15:49 +1300)]
Reshuffle Graph Editor theme settings to get pairs of settings to line up

7 years agoBump up default size of vertices in Graph Editor to make them easier to see/select
Joshua Leung [Fri, 17 Jan 2014 02:26:26 +0000 (15:26 +1300)]
Bump up default size of vertices in Graph Editor to make them easier to see/select

7 years agoFix T38161: Copy Material to Others causes incorrect viewport display if target objec...
Bastien Montagne [Fri, 17 Jan 2014 12:16:07 +0000 (13:16 +0100)]
Fix T38161: Copy Material to Others causes incorrect viewport display if target object uses more materials

We need to update object data, like when removing a mat slot, since some mat indices might have become invalid!

7 years agoBlender Internal: Correct GLSL preview, material using shader nodes didn't consider...
IRIE Shinsuke [Fri, 17 Jan 2014 07:28:53 +0000 (16:28 +0900)]
Blender Internal: Correct GLSL preview, material using shader nodes didn't consider "Transparency" is a shader pipeline option.

7 years agoCode Cleanup: spelling
Campbell Barton [Fri, 17 Jan 2014 06:35:03 +0000 (17:35 +1100)]
Code Cleanup: spelling

7 years agoBMesh: minor optimization for remove doubles
Campbell Barton [Fri, 17 Jan 2014 06:16:41 +0000 (17:16 +1100)]
BMesh: minor optimization for remove doubles

- replace heap allocation with stack for small arrays.
- remove edge-lookup when its already known.

7 years agoEditMesh: add delete loose operator (access from Cleanup menu)
Campbell Barton [Fri, 17 Jan 2014 01:08:12 +0000 (12:08 +1100)]
EditMesh: add delete loose operator (access from Cleanup menu)

7 years agoBMesh: add bmesh delete functions that dont depend on operator flags
Campbell Barton [Fri, 17 Jan 2014 00:39:23 +0000 (11:39 +1100)]
BMesh: add bmesh delete functions that dont depend on operator flags

7 years agoBuild Modifier - Add "Reversed" Option
Joshua Leung [Thu, 16 Jan 2014 11:13:36 +0000 (00:13 +1300)]
Build Modifier - Add "Reversed" Option

This commit introduces the ability to make the Build Modifier operate in reverse,
essentially allowing it to be used as a "deconstruction" effect.

(See D219 for more details about use cases for this)

7 years agoFix for long keyframes not getting faded out with their associated keyframes on prote...
Joshua Leung [Thu, 16 Jan 2014 11:00:40 +0000 (00:00 +1300)]
Fix for long keyframes not getting faded out with their associated keyframes on protected channels

7 years agoAssorted polish fixes for keyframe theme settings patch
Joshua Leung [Thu, 16 Jan 2014 10:56:40 +0000 (23:56 +1300)]
Assorted polish fixes for keyframe theme settings patch

* Version patching fixes for theme settings
* Added missing support for NLA (needed for the keyframes drawn in the action lines)
* Fix for a lack of contrast between selected and unselected extreme keyframe type
  (restoring it back to the pre-patch color scheme)
* Fix for keyframes on protected channels not being drawn with partial opacity

7 years agoT37579: Theme settings for Keyframe Colours
Jose Molina Garcia [Tue, 7 Jan 2014 09:45:40 +0000 (22:45 +1300)]
T37579: Theme settings for Keyframe Colours

This patch makes it possible to customise the colours used for the different
keyframe types (Keyframe, Breakdown, Extreme, Jitter) and the border colours
(normal and selected).

Reviewed by: Joshua Leung

7 years agoScons: Fix cycles OpenCL kernelcompile by distributing util_half.h
Jens Verwiebe [Thu, 16 Jan 2014 23:33:32 +0000 (00:33 +0100)]
Scons: Fix cycles OpenCL kernelcompile by distributing util_half.h

7 years agoCode Cleanup: remove redundant bmesh functions & make static
Campbell Barton [Thu, 16 Jan 2014 22:42:30 +0000 (09:42 +1100)]
Code Cleanup: remove redundant bmesh functions & make static

7 years agoBMesh: minor speedup for deleting faces. also remove unused delete-all
Campbell Barton [Thu, 16 Jan 2014 22:35:53 +0000 (09:35 +1100)]
BMesh: minor speedup for deleting faces. also remove unused delete-all

7 years agoCode Cleanup: move delete funcs out of bmesh_construct.c into own file
Campbell Barton [Thu, 16 Jan 2014 22:21:30 +0000 (09:21 +1100)]
Code Cleanup: move delete funcs out of bmesh_construct.c into own file

7 years agoCode Cleanup: avoid bpy.context when its passed in as an arg
Campbell Barton [Thu, 16 Jan 2014 21:42:07 +0000 (08:42 +1100)]
Code Cleanup: avoid bpy.context when its passed in as an arg

7 years agoOutliner: minor speedup for drawing, avoid 3 rna lookups per object
Campbell Barton [Thu, 16 Jan 2014 21:37:45 +0000 (08:37 +1100)]
Outliner: minor speedup for drawing, avoid 3 rna lookups per object

also for movie-clip dope-sheet

7 years agoFix T37706: avoid cycles crash when using a stack that exceeds SVM stack limits.
Brecht Van Lommel [Thu, 16 Jan 2014 21:36:30 +0000 (22:36 +0100)]
Fix T37706: avoid cycles crash when using a stack that exceeds SVM stack limits.

This should be pretty rare, the shader in question had many parallel node links
because of copying the nodes many times, which is inefficient to run anyway.

7 years agoCode cleanup: fix gcc/clang compiler warning in release build.
Brecht Van Lommel [Thu, 16 Jan 2014 21:27:25 +0000 (22:27 +0100)]
Code cleanup: fix gcc/clang compiler warning in release build.

7 years agoFix T37958: part of blender internal approximate AO / indirect light preprocess
Brecht Van Lommel [Thu, 16 Jan 2014 21:24:29 +0000 (22:24 +0100)]
Fix T37958: part of blender internal approximate AO / indirect light preprocess
could not be cancelled.

7 years agoForgot in previous commit to take care of user preferences
gaiaclary [Thu, 16 Jan 2014 21:16:43 +0000 (22:16 +0100)]
Forgot in previous commit to take care of user preferences

7 years agoImproved the Quit Confirm behaviour: Now confirm only shows up when current session...
gaiaclary [Thu, 16 Jan 2014 20:42:16 +0000 (21:42 +0100)]
Improved the Quit Confirm behaviour: Now confirm only shows up when current session is dirty

7 years agoMinor change to last commit to solidify, only allocate bitmap as needed
Campbell Barton [Thu, 16 Jan 2014 19:58:09 +0000 (06:58 +1100)]
Minor change to last commit to solidify, only allocate bitmap as needed

7 years agoWorkaround for avx assembler not compiling with vanilla gcc ( with openMP case )
Jens Verwiebe [Thu, 16 Jan 2014 18:44:25 +0000 (19:44 +0100)]
Workaround for avx assembler not compiling with vanilla gcc ( with openMP case )

7 years agoFix compilation of Cycles AVX kernel with cmake.
Thomas Dinges [Thu, 16 Jan 2014 17:32:39 +0000 (18:32 +0100)]
Fix compilation of Cycles AVX kernel with cmake.

7 years agoCorrect versioning check for manipulator
Campbell Barton [Thu, 16 Jan 2014 17:24:59 +0000 (04:24 +1100)]
Correct versioning check for manipulator

7 years agoCode Cleanup: loop over ThemeSpace's where possible
Campbell Barton [Thu, 16 Jan 2014 16:50:41 +0000 (03:50 +1100)]
Code Cleanup: loop over ThemeSpace's where possible

7 years agoBLF: Fix for changing the DPI storing many fonts (300+)
Campbell Barton [Thu, 16 Jan 2014 16:04:46 +0000 (03:04 +1100)]
BLF: Fix for changing the DPI storing many fonts (300+)

Each dpi value stores its own set of font sizes, so while dragging the
dpi value would collect many sizes and never free.

Also change how BLF_cache_clear works,
it was freeing memory but not the OpenGL textures.

Now just free all the cache and GL textures and let drawing allocate them again as needed.

7 years agoCycles: Add an AVX kernel for CPU rendering.
Thomas Dinges [Thu, 16 Jan 2014 16:04:11 +0000 (17:04 +0100)]
Cycles: Add an AVX kernel for CPU rendering.

* AVX is available on Intel Sandy Bridge and newer and AMD Bulldozer and newer.
* We don't use dedicated AVX intrinsics yet, but gcc auto vectorization gives a 3% performance improvement for Caminandes. Tested on an i5-3570, Linux x64.
* No change for Windows yet, MSVC 2008 does not support AVX.

Reviewed by: brecht
Differential Revision:

7 years agoBLF: avoid allocating empty array in blf_glyph_cache_texture
Campbell Barton [Thu, 16 Jan 2014 15:16:22 +0000 (02:16 +1100)]
BLF: avoid allocating empty array in blf_glyph_cache_texture

7 years agoFix for BLF using realloc() on guarded-alloced memory
Campbell Barton [Thu, 16 Jan 2014 15:13:55 +0000 (02:13 +1100)]
Fix for BLF using realloc() on guarded-alloced memory

7 years agoCode Cleanup: spelling
Campbell Barton [Thu, 16 Jan 2014 14:54:37 +0000 (01:54 +1100)]
Code Cleanup: spelling

7 years agoCMake: add missing dependency for icon target
Campbell Barton [Thu, 16 Jan 2014 14:50:33 +0000 (01:50 +1100)]
CMake: add missing dependency for icon target

7 years agoFix T38217: Fix glitch adding Monkey with view align
Campbell Barton [Thu, 16 Jan 2014 12:50:35 +0000 (23:50 +1100)]
Fix T38217: Fix glitch adding Monkey with view align

added an option so view-align can default to a different axis.

7 years agoFix T38116: Crash when using solidify modifier on multi-user mesh
Sergey Sharybin [Thu, 16 Jan 2014 11:46:32 +0000 (17:46 +0600)]
Fix T38116: Crash when using solidify modifier on multi-user mesh

Issue was caused by solidify modifier using original vertices bitfield
to store tags. This isn't thread-safe obviously. Now use bitmap to store
needed tags.

Reviewed by Campbell, thanks!

7 years agoCode Cleanup: no need to pass empty strings as default values
Campbell Barton [Thu, 16 Jan 2014 10:43:22 +0000 (21:43 +1100)]
Code Cleanup: no need to pass empty strings as default values

7 years agoCode Cleanup: avoid using G_PICKSEL for transform manipulator
Campbell Barton [Thu, 16 Jan 2014 09:54:14 +0000 (20:54 +1100)]
Code Cleanup: avoid using G_PICKSEL for transform manipulator

7 years agoCorrect error in own recent commit
Campbell Barton [Thu, 16 Jan 2014 09:52:30 +0000 (20:52 +1100)]
Correct error in own recent commit

7 years agoCode Cleanup: outliner used magic numbers for active items and selecting
Campbell Barton [Thu, 16 Jan 2014 09:22:45 +0000 (20:22 +1100)]
Code Cleanup: outliner used magic numbers for active items and selecting

Replace with enums to make it more obvious whats happening

7 years agoCompilation error fix: mismatch declaration
Sergey Sharybin [Thu, 16 Jan 2014 09:05:04 +0000 (15:05 +0600)]
Compilation error fix: mismatch declaration

7 years agoCode Cleanup: style and redundant casts
Campbell Barton [Thu, 16 Jan 2014 08:15:53 +0000 (19:15 +1100)]
Code Cleanup: style and redundant casts

7 years agoCode Cleanup: simplify matcaps checks and quiet warning
Campbell Barton [Thu, 16 Jan 2014 07:32:57 +0000 (18:32 +1100)]
Code Cleanup: simplify matcaps checks and quiet warning

7 years agoUser Prefs: Manipulator unit and tooltip fixes
Andrew Buttery [Thu, 16 Jan 2014 05:47:12 +0000 (16:47 +1100)]
User Prefs: Manipulator unit and tooltip fixes

removal of x5 hardcoded size multiplier

7 years agoTweak to early threaded update escape
Sergey Sharybin [Wed, 15 Jan 2014 20:03:48 +0000 (02:03 +0600)]
Tweak to early threaded update escape

Issue was caused by some objects being in bMain and tagged
for update but not being in the DAG. This means objects
wouldn't be updated and their recalc flag remains untouched
triggering threaded for the next frame.

Solved by tweaking POST_UPDATE_HANDLER_WORKAROUND in the way
that it checks objects' recalc flags from the DAG, not from
the bMain. This will work a bit longer since DAG stored more
nodes than objects in the scene, but this code only runs in
cases when there're some objects tagged for update, which
keeps overall CPU usage on such a workaround pretty low.

Now CPU usage on 11a_comp scene from project Pampa went down
from ~15% down to ~5% (2,69 release uses ~%7).

Pointed by Thomas Dinges in IRC.

7 years agoFix T38233: Right click in Particle Edit mode closes application
Sergey Sharybin [Wed, 15 Jan 2014 19:34:08 +0000 (01:34 +0600)]
Fix T38233: Right click in Particle Edit mode closes application

It was wrong memory access in selection operators when point doesn't
have keys.

7 years agoPotential fix for T38111: Duplicating BOIDS emitter cause glitchy operation
Sergey Sharybin [Wed, 15 Jan 2014 18:55:38 +0000 (00:55 +0600)]
Potential fix for T38111: Duplicating BOIDS emitter cause glitchy operation

Need to reset cached KD tree when duplicating particle system.

7 years agoFix collada and freestyle module compile errors after recent commit, forgot to
Brecht Van Lommel [Wed, 15 Jan 2014 18:15:51 +0000 (19:15 +0100)]
Fix collada and freestyle module compile errors after recent commit, forgot to
compile with those enabled.

7 years agoUI: add "double click to rename" tooltip to list items.
Andrew Buttery [Wed, 15 Jan 2014 15:52:53 +0000 (16:52 +0100)]
UI: add "double click to rename" tooltip to list items.

This is to try to avoid some confusion now that the separate text fields are gone.

Reviewed By: billrey, brecht

Differential Revision:

7 years agoPython/Depsgraph:*.is_updated now detects add/remove of any datablock.
Tom Edwards [Wed, 15 Jan 2014 15:37:03 +0000 (16:37 +0100)]
Python/Depsgraph:*.is_updated now detects add/remove of any datablock.

Previously this only worked for some datablocks relevant to rendering, now it
can be used to detect if any type of datablock was added or removed (but not
yet to detect if it was modified, we need many more depsgraph tags for that).

Most of the changes are some function parameter changes, the important parts
are the DAG_id_type_tag calls.

Reviewed By: sergey, brecht

Differential Revision:

7 years agoFix T38234: changing smooth/flat shading on linked mesh data should not be allowed.
Brecht Van Lommel [Wed, 15 Jan 2014 15:01:40 +0000 (16:01 +0100)]
Fix T38234: changing smooth/flat shading on linked mesh data should not be allowed.

7 years agoCode cleanup: move half float functions to separate header file.
Brecht Van Lommel [Wed, 15 Jan 2014 14:29:22 +0000 (15:29 +0100)]
Code cleanup: move half float functions to separate header file.

7 years agoCode cleanup: some reshuffling of SIMD defines moving more code to util_optimization.h.
Brecht Van Lommel [Wed, 15 Jan 2014 14:11:50 +0000 (15:11 +0100)]
Code cleanup: some reshuffling of SIMD defines moving more code to util_optimization.h.

7 years agoFix for infinite freestyle re-render in the viewport
Sergey Sharybin [Wed, 15 Jan 2014 11:42:01 +0000 (17:42 +0600)]
Fix for infinite freestyle re-render in the viewport

Was a regression since e618d8238e0e and was caused by the wrong
main being tagged for update.

7 years agoEek, terrible typo in previous commit
Sergey Sharybin [Wed, 15 Jan 2014 10:42:00 +0000 (16:42 +0600)]
Eek, terrible typo in previous commit

Pointed by Bastien!

7 years agoOnly check OB_RECALC_ALL flags of the object in transform code
Sergey Sharybin [Wed, 15 Jan 2014 10:38:47 +0000 (16:38 +0600)]
Only check OB_RECALC_ALL flags of the object in transform code

Because of the issue of how simplification works, there could
be more flags in on->recalc bitfield which are ignored by object

Would save some update calls after simplificating the scene.

7 years agoFollowup to the previous commit
Sergey Sharybin [Wed, 15 Jan 2014 10:36:48 +0000 (16:36 +0600)]
Followup to the previous commit

It was actually rather simple to make sure depsgraph is up to date
before calling BKE_object_handle_update() in the transform code by
just moving DAG_scene_relations_update() to the beginning of the

Wouldn't expect any side effects for other cases since DAG is not
used bu the code between new location of the call and old one.

7 years agoFix T38224: Blender crashes on duplicating curve
Sergey Sharybin [Wed, 15 Jan 2014 10:25:28 +0000 (16:25 +0600)]
Fix T38224: Blender crashes on duplicating curve

Issue is caused by the evaluation flags getter called with
NULL depsgraph. It happens on direct object update from the
transform code after duplicating the curve.

Proper solution is probably to make sure depsgraph is rebuild
after duplication, but for now it's better to prevent crashes.

7 years agoFix compilation error with stricg GCC flags
Sergey Sharybin [Wed, 15 Jan 2014 10:21:53 +0000 (16:21 +0600)]
Fix compilation error with stricg GCC flags

7 years agoFix T38216: Cycles render crash Blender in some scene in versions
Sergey Sharybin [Wed, 15 Jan 2014 09:48:51 +0000 (15:48 +0600)]
Fix T38216: Cycles render crash Blender in some scene in versions

Issue was caused by evaluation flags getter function polluting
the DAG. Need to use dag_find_node() instead.

Still need to doublecheck exporting objects with curve deform
works properly. On the first thought it should, but might be
wrong again.

7 years agoFix a bunch of UI string issues...
Bastien Montagne [Wed, 15 Jan 2014 09:40:28 +0000 (10:40 +0100)]
Fix a bunch of UI string issues...

7 years agoFix text overlap when using edge angle & length
Campbell Barton [Wed, 15 Jan 2014 09:03:19 +0000 (20:03 +1100)]
Fix text overlap when using edge angle & length

From D193 by Ron Davis with some edits.

7 years agoFix T38166: Vertex slide C key doesn't work
Campbell Barton [Wed, 15 Jan 2014 07:27:39 +0000 (18:27 +1100)]
Fix T38166: Vertex slide C key doesn't work

7 years agoFix T38227: Cloth cache storing only every 10 frames.
Sergej Reich [Wed, 15 Jan 2014 05:08:44 +0000 (06:08 +0100)]
Fix T38227: Cloth cache storing only every 10 frames.

Make sure pointcache step is set to 1 for cloth when copying objects.

7 years agoFix for mistake in recent shadow addition in tabs
Campbell Barton [Wed, 15 Jan 2014 04:45:55 +0000 (15:45 +1100)]
Fix for mistake in recent shadow addition in tabs

7 years agoFix T38207: Tab scale jitters when resizing region
Campbell Barton [Wed, 15 Jan 2014 02:38:41 +0000 (13:38 +1100)]
Fix T38207: Tab scale jitters when resizing region

7 years agoCode Cleanup: use iroundf
Campbell Barton [Wed, 15 Jan 2014 02:00:03 +0000 (13:00 +1100)]
Code Cleanup: use iroundf

also increase precision of rctf print functions

7 years agoCode Cleanup: float/double promotions
Campbell Barton [Wed, 15 Jan 2014 01:52:20 +0000 (12:52 +1100)]
Code Cleanup: float/double promotions

7 years agoMath Lib: add iroundf function for: (int)floorf(a + 0.5f)
Campbell Barton [Wed, 15 Jan 2014 01:31:30 +0000 (12:31 +1100)]
Math Lib: add iroundf function for: (int)floorf(a + 0.5f)

7 years agoCode cleanup - Commented out some code which wasn't actually doing anything
Joshua Leung [Wed, 15 Jan 2014 01:54:00 +0000 (14:54 +1300)]
Code cleanup - Commented out some code which wasn't actually doing anything

gpf->framenum is an int, not a float. Hence, this type of rounding has no effect.

7 years agoWhitespace/Style fix
Joshua Leung [Thu, 9 Jan 2014 12:15:13 +0000 (01:15 +1300)]
Whitespace/Style fix

7 years agoFix uninitialised var warning
Joshua Leung [Thu, 9 Jan 2014 12:01:23 +0000 (01:01 +1300)]
Fix uninitialised var warning