9 years agoMerged changes in the trunk up to revision 50607.
Tamito Kajiyama [Sat, 15 Sep 2012 00:15:24 +0000 (00:15 +0000)]
Merged changes in the trunk up to revision 50607.

Conflicts resolved:

9 years agostyle cleanup
Campbell Barton [Fri, 14 Sep 2012 23:11:47 +0000 (23:11 +0000)]
style cleanup

9 years agoCollada: #32549 partial fix: packed images now export correctly
Gaia Clary [Fri, 14 Sep 2012 22:31:26 +0000 (22:31 +0000)]
Collada: #32549 partial fix: packed images now export correctly

9 years agoImplemented the Particle Info for OSL. Uses the following attributes:
Lukas Toenne [Fri, 14 Sep 2012 19:09:25 +0000 (19:09 +0000)]
Implemented the Particle Info for OSL. Uses the following attributes:

* std::particle_index
* std::particle_age
* std::particle_lifetime
* std::particle_location
* std::particle_size
* std::particle_velocity
* std::particle_angular_velocity

Just as with SVM the rotation state attribute is currently disabled due to lack of a proper quaternion or matrix type in Cycles nodes.

9 years agoAdded Object Info node implementation for OSL. This uses an additional attribute...
Lukas Toenne [Fri, 14 Sep 2012 18:10:54 +0000 (18:10 +0000)]
Added Object Info node implementation for OSL. This uses an additional attribute check in the osl_services callback for special attribute names related to objects:

* std::object_location
* std::object_index
* std::material_index
* std::object_random

Other object-based attributes can be added for particle info in the same way.

9 years agoCorrection to rev50582: LABEL could have a1 = 1.0f and in this case a2 would be used...
Sergey Sharybin [Fri, 14 Sep 2012 16:41:00 +0000 (16:41 +0000)]
Correction to rev50582: LABEL could have a1 = 1.0f and in this case a2 would be used as alpha multiplier for icon

9 years agoDisable legacy compositor by default
Sergey Sharybin [Fri, 14 Sep 2012 15:21:56 +0000 (15:21 +0000)]
Disable legacy compositor by default

9 years agoMovie cache: made it thread safe to operate with memory limitor
Sergey Sharybin [Fri, 14 Sep 2012 14:55:59 +0000 (14:55 +0000)]
Movie cache: made it thread safe to operate with memory limitor

Movie cache is using global memory limitor, which isn't thread safe
in some of operations, so it required to add mutex around limitor
operations in movie cache.

It's probably could be solved in a way with less locks involved by
using different limitor for different areas (like use own limitor
for clips, own limitor for sequencer and so), but that wouldn't be
so easy to control overall memory usage.

svn merge -r50125:50126 ^/branches/soc-2011-tomato

9 years agoSequencer: clear cache and animation buffers for strips outside of cursor when rendering
Sergey Sharybin [Fri, 14 Sep 2012 14:28:24 +0000 (14:28 +0000)]
Sequencer: clear cache and animation buffers for strips outside of cursor when rendering

This avoids having bunch of cached images when doing animation rendering,
keeping all the memory available for rendered itself.

This keeps memory usage low when rendering huge edits with mixed
scenes and movie strips.

This should not affect on sped of video encoding, which was confirmed by
some own tests.

svn merge -r50051:50052 ^/branches/soc-2011-tomato

9 years agoCycles / Test:
Thomas Dinges [Fri, 14 Sep 2012 13:11:48 +0000 (13:11 +0000)]
Cycles / Test:
* Enable progressive flag, tiles are not working properly (Image gets brighter with more samples and no visible updates until all tiles are finished).

9 years agoCode cleanup: removed unused Cocoa image load/save code.
Brecht Van Lommel [Fri, 14 Sep 2012 11:42:05 +0000 (11:42 +0000)]
Code cleanup: removed unused Cocoa image load/save code.

9 years agofix for sharp edge selection being inverted, change default angle from 1 to 30deg.
Campbell Barton [Fri, 14 Sep 2012 11:10:03 +0000 (11:10 +0000)]
fix for sharp edge selection being inverted, change default angle from 1 to 30deg.

9 years agofixes for NULL checks, remove some redundant checks and add some in that have been...
Campbell Barton [Fri, 14 Sep 2012 06:17:14 +0000 (06:17 +0000)]
fixes for NULL checks, remove some redundant checks and add some in that have been removed by accident as code has been updated.

9 years agofix for out-of-bounds checks for fcurve modifier and poselib, also check for NULL...
Campbell Barton [Fri, 14 Sep 2012 06:15:46 +0000 (06:15 +0000)]
fix for out-of-bounds checks for fcurve modifier and poselib, also check for NULL members of avi structure (since they are checked for NULL later.)

9 years agocode cleanup: correct misleading use of LABEL button type.
Campbell Barton [Fri, 14 Sep 2012 05:44:47 +0000 (05:44 +0000)]
code cleanup: correct misleading use of LABEL button type.

9 years agoadd checking target `check_smatch`
Campbell Barton [Fri, 14 Sep 2012 05:08:48 +0000 (05:08 +0000)]
add checking target `check_smatch`

9 years agonode transform was using PET mode (drawing a circle - but it did nothing), disable...
Campbell Barton [Fri, 14 Sep 2012 01:28:26 +0000 (01:28 +0000)]
node transform was using PET mode (drawing a circle - but it did nothing), disable PET for nodes.

9 years agofix for 2 crashes freeing masks
Campbell Barton [Fri, 14 Sep 2012 01:15:08 +0000 (01:15 +0000)]
fix for 2 crashes freeing masks
- freeing a mask from RNA BKE_libblock_free() twice on the mask.
- loading a new blend file would only free the mask and not unlink it from nodes - it would access freed memory.

9 years agobge cleanup caught by accident while going over the code, it seems someone forgot...
Dalai Felinto [Thu, 13 Sep 2012 23:39:09 +0000 (23:39 +0000)]
bge cleanup caught by accident while going over the code, it seems someone forgot to use rect_height everywhere (no functional change)

9 years agoFix #32547: unwrap on default cube got broken in recent commit.
Brecht Van Lommel [Thu, 13 Sep 2012 13:29:10 +0000 (13:29 +0000)]
Fix #32547: unwrap on default cube got broken in recent commit.

9 years agoSequencer: add missed cache invalidation
Sergey Sharybin [Thu, 13 Sep 2012 10:51:18 +0000 (10:51 +0000)]
Sequencer: add missed cache invalidation

Invalidation was missed for:

- Strip (Un)Muting
- Changing speed effect
- Strip translating

9 years agoSequencer: fix invalid update when translating strip which is behind semi-transparent...
Sergey Sharybin [Thu, 13 Sep 2012 10:51:13 +0000 (10:51 +0000)]
Sequencer: fix invalid update when translating strip which is behind semi-transparent strip

9 years agofix [#31946] Masking doesn't respect pixel ratio
Campbell Barton [Thu, 13 Sep 2012 05:29:38 +0000 (05:29 +0000)]
fix [#31946] Masking doesn't respect pixel ratio

9 years agofix for drawing non 1:1 aspect masks, transform and selection still need support.
Campbell Barton [Thu, 13 Sep 2012 02:28:48 +0000 (02:28 +0000)]
fix for drawing non 1:1 aspect masks, transform and selection still need support.

9 years ago- cmake macro list_insert_after/list_insert_before now error when the item passed...
Campbell Barton [Thu, 13 Sep 2012 01:52:58 +0000 (01:52 +0000)]
- cmake macro list_insert_after/list_insert_before now error when the item passed is not found in the list.
- BKE_pose_copy_data() check for target pointer is no longer valid and infact comparing against un-initialized memory in some cases.

9 years agocode cleanup: reduce calls to CTX_ functions inline, add some docs to mask rasterizer.
Campbell Barton [Thu, 13 Sep 2012 01:50:21 +0000 (01:50 +0000)]
code cleanup: reduce calls to CTX_ functions inline, add some docs to mask rasterizer.

9 years agoBGE: LibLoaded sensors that made use of physics controllers (touch, collision) could...
Mitchell Stokes [Thu, 13 Sep 2012 00:46:50 +0000 (00:46 +0000)]
BGE: LibLoaded sensors that made use of physics controllers (touch, collision) could cause various physics problems (like infinite loops in Bullet, etc). This happened because their KX_TouchEventManagers were merged prior to having their physics controllers merged, which has now been fixed. Thanks to Kupoman for hunting down the fix!

9 years agomodifications needed to get a URL from an RNA id from the testing script
Campbell Barton [Thu, 13 Sep 2012 00:26:01 +0000 (00:26 +0000)]
modifications needed to get a URL from an RNA id from the testing script

9 years agotest script to check rna/wiki lookup completeness
Campbell Barton [Thu, 13 Sep 2012 00:17:38 +0000 (00:17 +0000)]
test script to check rna/wiki lookup completeness

9 years agofix for missing NULL check in own recent commit, thanks Gaia for pointing this out.
Campbell Barton [Wed, 12 Sep 2012 23:19:08 +0000 (23:19 +0000)]
fix for missing NULL check in own recent commit, thanks Gaia for pointing this out.

9 years agoCollada: do not call polylist export for objects with no polygons (avoid a missleadin...
Gaia Clary [Wed, 12 Sep 2012 18:26:01 +0000 (18:26 +0000)]
Collada: do not call polylist export for objects with no polygons (avoid a missleading warning message)

9 years agoFix #32338: particle instance modifier did not work well when the mesh had only
Brecht Van Lommel [Wed, 12 Sep 2012 16:42:24 +0000 (16:42 +0000)]
Fix #32338: particle instance modifier did not work well when the mesh had only
vertices. Previously it would hide particles by creating invalid faces, but this
didn't make the vertices actually disappear.

Also found that it could generated corrupt geometry for cases with faces, which
gave wrong subsurf and could crash in edit mode.

9 years ago#31682: corrected some minor typos in the comment
Gaia Clary [Wed, 12 Sep 2012 15:48:22 +0000 (15:48 +0000)]
#31682: corrected some minor typos in the comment

9 years ago#31682: partial fix (the export): Avoid to copy exported image into itself
Gaia Clary [Wed, 12 Sep 2012 15:41:58 +0000 (15:41 +0000)]
#31682: partial fix (the export): Avoid to copy exported image into itself

9 years agoFix #32543: screw modifier with smooth shading disabled still had one segment
Brecht Van Lommel [Wed, 12 Sep 2012 13:06:31 +0000 (13:06 +0000)]
Fix #32543: screw modifier with smooth shading disabled still had one segment
smooth shaded.

9 years agoFix #32031: particle distribution on degenerate faces could give NaN values,
Brecht Van Lommel [Wed, 12 Sep 2012 13:06:28 +0000 (13:06 +0000)]
Fix #32031: particle distribution on degenerate faces could give NaN values,
which in this case caused NaN values in render lighting.

9 years agoAttempted fix for #32415: tighten up cycles opencl initialization checks to try to
Brecht Van Lommel [Wed, 12 Sep 2012 11:25:47 +0000 (11:25 +0000)]
Attempted fix for #32415: tighten up cycles opencl initialization checks to try to
avoid crashes. Don't think these should be needed but maybe it helps.

9 years agofix [#31019] [Minor] Freshly added nodes aren't getting undo push
Campbell Barton [Wed, 12 Sep 2012 11:09:27 +0000 (11:09 +0000)]
fix [#31019] [Minor] Freshly added nodes aren't getting undo push

also noticed ED_undo_push was checking USER_GLOBALUNDO unnecessarily

9 years agoCycles UI:
Thomas Dinges [Wed, 12 Sep 2012 10:54:25 +0000 (10:54 +0000)]
Cycles UI:
* Non-Progressive UI couldn't be displayed if the device was set to GPU, but User Preferences Device was NULL. (for example when opening .blend file on another computer without GPU capabilities)

* Fix missing update in the Properties editor, when changing compute_device.

This fixes [#32115] OSX and cycles no non-progessive sample input settings appearing in interface.

9 years agoadd note that clip start is for perspective view only.
Campbell Barton [Wed, 12 Sep 2012 10:18:35 +0000 (10:18 +0000)]
add note that clip start is for perspective view only.

9 years agofix [#30324] VSE: Right-Click does not select directory
Campbell Barton [Wed, 12 Sep 2012 10:04:09 +0000 (10:04 +0000)]
fix [#30324] VSE: Right-Click does not select directory

9 years agofix [#32350] F11 play animation crash when UI language is not "Default"
Campbell Barton [Wed, 12 Sep 2012 08:06:06 +0000 (08:06 +0000)]
fix [#32350] F11 play animation crash when UI language is not "Default"

this is a bug in boost 1.46, can remove this env var override when this version of boost is no longer supported.

9 years agoadd clarification, without this the tool reads as if it makes the radius of each...
Campbell Barton [Wed, 12 Sep 2012 06:31:26 +0000 (06:31 +0000)]
add clarification, without this the tool reads as if it makes the radius of each selected vertex equal.

9 years agocode cleanup: replace BM_DISK_EDGE_LINK_GET define with inline function, that checks...
Campbell Barton [Wed, 12 Sep 2012 05:11:38 +0000 (05:11 +0000)]
code cleanup: replace BM_DISK_EDGE_LINK_GET define with inline function, that checks for the vertex not matching either of the edges verts.

9 years agofix [#31456] Extreme lag editing meshes
Campbell Barton [Wed, 12 Sep 2012 04:53:49 +0000 (04:53 +0000)]
fix [#31456] Extreme lag editing meshes

running BM_CHECK_ELEMENT was taking over 75% of the time to subdivide a mesh, since this only reports errors, and is so slow - only run this on non-release builds.

9 years agofix memory leak when baking feedback loop detected.
Campbell Barton [Wed, 12 Sep 2012 03:11:29 +0000 (03:11 +0000)]
fix memory leak when baking feedback loop detected.

9 years agofix [#32537] Inconsistent behaviour of Texture Baker
Campbell Barton [Wed, 12 Sep 2012 03:05:20 +0000 (03:05 +0000)]
fix [#32537] Inconsistent behaviour of Texture Baker

feedback looks wen't being detected in some cases causing very confusing behavior.

9 years agocode cleanup: changing the INT define to an enum conflicts with INT typedef on window...
Campbell Barton [Wed, 12 Sep 2012 00:32:33 +0000 (00:32 +0000)]
code cleanup: changing the INT define to an enum conflicts with INT typedef on windows, use more verbose names for button pointer types. also removed some redundant flags from buttons.

9 years agofix [#32444] Proportional Edit stays on on Pose Mode, after activating it in Object...
Campbell Barton [Tue, 11 Sep 2012 23:37:17 +0000 (23:37 +0000)]
fix [#32444] Proportional Edit stays on on Pose Mode, after activating it in Object Mode.

disable PET in posemode.

9 years agocode cleanup: use an enum for uiBut->pointype (more useful debug display of members),
Campbell Barton [Tue, 11 Sep 2012 23:10:23 +0000 (23:10 +0000)]
code cleanup: use an enum for uiBut->pointype (more useful debug display of members),
and rename COL -> COLOR --- less confusing since the layout engine has row/col's.

9 years agoa-z menu input now works for enum popups.
Campbell Barton [Tue, 11 Sep 2012 22:55:27 +0000 (22:55 +0000)]
a-z menu input now works for enum popups.

9 years agobugfix [#32538] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x [Patch...
Dalai Felinto [Tue, 11 Sep 2012 22:55:14 +0000 (22:55 +0000)]
bugfix [#32538] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x [Patch] - based on the patch from HG1

9 years agoFix for [#32536] Mixing with translated images in compositor produces
Jeroen Bakker [Tue, 11 Sep 2012 16:57:05 +0000 (16:57 +0000)]
Fix for [#32536] Mixing with translated images in compositor produces
garbage strips for each tile

Promoted the behaviour of combine channels to node operation so that all
nodes use the same implementation. (CombineChannel had a better

9 years agoFix libmv build on OS X with 10.5 SDK. The tr1::unordered_map implementation
Brecht Van Lommel [Tue, 11 Sep 2012 11:54:10 +0000 (11:54 +0000)]
Fix libmv build on OS X with 10.5 SDK. The tr1::unordered_map implementation
is broken in this SDK, now it uses the boost implementation instead.

9 years agoPerformance fix for Cycles: Don't wait in the main UI thread when resetting devices.
Lukas Toenne [Tue, 11 Sep 2012 11:41:51 +0000 (11:41 +0000)]
Performance fix for Cycles: Don't wait in the main UI thread when resetting devices.

When the scene is updated Cycles resets the renderer device, cancelling
all existing tasks. The main thread would wait for all running tasks to
finish before continuing. This is ok when tasks can actually cancel in a
timely fashion. For OSL however, this does not work, since the OSL
shader group optimization takes quite a bit of time and can not be
easily be cancelled once running (on my crappy machine in full debug
mode: ~0.12 seconds for simple node trees). This would lead to very
laggy UI behavior and make it difficult to accurately control elements
such as sliders.

This patch removes the wait condition from the device->task_cancel
method. Instead it just sets the do_cancel flag and returns. To avoid
backlog in the task pool of the device it will return early from the
BlenderSession::sync function while the reset is going on (tested in
Session::resetting). Once all existing tasks have finished the do_cancel
flag is finally cleared again (checked in TaskPool::num_decrease).

Care has to be taken to avoid race conditions on the do_cancel flag,
since it can now be modified outside the TaskPool::cancel function
itself. For this purpose the scope of the TaskPool::num_mutex locks has
been extended, in most cases the mutex is now locked by the TaskPool
itself before calling TaskScheduler methods, instead of only locking
inside the num_increase/num_decrease functions themselves. The only
occurrence of a lock outside of the TaskPool methods is in

This patch is most useful in combination with the OSL renderer mode, so
it can probably wait until after the 2.64 release. SVM tasks tend to be
cancelled quickly, so the effect is less noticeable.

9 years agofix [#29616] Crash/infinite loop from missing cyclic check in group/dupligroups ...
Campbell Barton [Tue, 11 Sep 2012 10:18:45 +0000 (10:18 +0000)]
fix [#29616] Crash/infinite loop from missing cyclic check in group/dupligroups (unlikely/intentional)

calling BKE_ptcache_ids_from_object() could recursively call BKE_object_handle_update(), when there is no reason to update object transforms at all. Add option not to do any updates and just return an object list.

9 years agocode cleanup: use min/max inline functions rather than macros & simplify loop
Campbell Barton [Tue, 11 Sep 2012 09:39:37 +0000 (09:39 +0000)]
code cleanup: use min/max inline functions rather than macros & simplify loop

9 years agofix [#31738] BM_vert_splice modifies loops during iteration
Campbell Barton [Tue, 11 Sep 2012 06:12:48 +0000 (06:12 +0000)]
fix [#31738] BM_vert_splice modifies loops during iteration

patch by Nicholas Bishop, modified to avoid looping over vert-loops one extra time.

added BM_iter_as_arrayN(), returns an iterator as an array without knowing the length before calling.

9 years agoreplace BM_vert_face_count() use of BM_LOOPS_OF_VERT iterator with a direct call...
Campbell Barton [Tue, 11 Sep 2012 05:27:15 +0000 (05:27 +0000)]
replace BM_vert_face_count() use of BM_LOOPS_OF_VERT iterator with a direct call to bmesh_disk_facevert_count()

9 years agoadd some missing NULL checks, a few parts of the code used a pointer then checked...
Campbell Barton [Tue, 11 Sep 2012 02:18:27 +0000 (02:18 +0000)]
add some missing NULL checks, a few parts of the code used a pointer then checked it for NULL after.
also made it more clear that some areas assume the pointer isnt null (remove redundant NULL checks).

9 years agofix [#32531] Texturepainting always uses smooth shaded normals
Campbell Barton [Tue, 11 Sep 2012 01:30:05 +0000 (01:30 +0000)]
fix [#32531] Texturepainting always uses smooth shaded normals

9 years ago'new file' now runs callbacks.
Campbell Barton [Mon, 10 Sep 2012 23:36:07 +0000 (23:36 +0000)]
'new file' now runs callbacks.

Without this - there wasnt a good way to ensure addons were aware of new data being loading in new files.
requested by request by liquidape and maccuno.

9 years agofix for a bug running a script, then opening a new file.
Campbell Barton [Mon, 10 Sep 2012 23:32:46 +0000 (23:32 +0000)]
fix for a bug running a script, then opening a new file.

BPY_text_free_code() could run outside the python interpreter which abort()'s blender.

9 years agocode cleanup: string c++ lib, defines for default string sizes and use m_ convention...
Campbell Barton [Mon, 10 Sep 2012 22:43:36 +0000 (22:43 +0000)]
code cleanup: string c++ lib, defines for default string sizes and use m_ convention for member naming.

9 years agoFix #32529: after tomato merge, cycles multi GPU render not using all GPUs with
Brecht Van Lommel [Mon, 10 Sep 2012 14:00:05 +0000 (14:00 +0000)]
Fix #32529: after tomato merge, cycles multi GPU render not using all GPUs with
F12 rendering.

9 years agoFix #32530: animation playback did not respect preview frame range if the current
Brecht Van Lommel [Mon, 10 Sep 2012 14:00:01 +0000 (14:00 +0000)]
Fix #32530: animation playback did not respect preview frame range if the current
frame was before the start frame.

9 years agochange to auto-opening menus so the first menu item in popup menu wont auto open.
Campbell Barton [Mon, 10 Sep 2012 10:50:08 +0000 (10:50 +0000)]
change to auto-opening menus so the first menu item in popup menu wont auto open.

This way we can do predictable key-shortcut-chaining. Eg.

Shift+A, M, O --- adds a metaball cone.

In editmode
Ctrl+V, X, A --- Assign new vertex group.

9 years agoOSL cmake cleanup:
Lukas Toenne [Mon, 10 Sep 2012 08:38:51 +0000 (08:38 +0000)]
OSL cmake cleanup:
* Removed unused lib and include directories (also one bad 'src' include that wouldn't work anyway)
* Copied cmake library finding to APPLE and WIN32 sections. These may need some adjustment for their respective OS.

9 years agocode cleanup: use typedef'd enum for block bounds types.
Campbell Barton [Mon, 10 Sep 2012 07:03:30 +0000 (07:03 +0000)]
code cleanup: use typedef'd enum for block bounds types.

9 years agomake alphanumeric key shortcuts work for submenu's so you can chain keys together...
Campbell Barton [Mon, 10 Sep 2012 06:44:25 +0000 (06:44 +0000)]
make alphanumeric key shortcuts work for submenu's so you can chain keys together to select items in a menu.

eg: 'Ctrl+V, E, S'
for - Vertex, Separate, Selection

9 years agoCleanup for OSL linking in cmake: Move cmake OSL library search and path definition...
Lukas Toenne [Mon, 10 Sep 2012 06:18:20 +0000 (06:18 +0000)]
Cleanup for OSL linking in cmake: Move cmake OSL library search and path definition from the cycles macro file to the top-level CMakeLists.txt. This makes the OSL_LIBRARIES and other variables accessible throughout Blender cmake scripts and especially in the creator module for linking libraries.

9 years agofix [#32384] Submenu hotkeys not working at all since 2.6x
Campbell Barton [Mon, 10 Sep 2012 06:10:43 +0000 (06:10 +0000)]
fix [#32384] Submenu hotkeys not working at all since 2.6x

9 years agocode cleanup:
Campbell Barton [Mon, 10 Sep 2012 06:05:19 +0000 (06:05 +0000)]
code cleanup:
use an enum typedef for button types. it was quite annoying debugging UI code since the defines are bit-shifted. GDB would show but->type as 13824 and blender define was (27 << 9).

Now but->type shows as a humanly readable names.

9 years agomissing include in own recent commit
Campbell Barton [Mon, 10 Sep 2012 05:47:07 +0000 (05:47 +0000)]
missing include in own recent commit

9 years agofix [#32518] Vertex slide crash sometimes.
Campbell Barton [Mon, 10 Sep 2012 03:42:29 +0000 (03:42 +0000)]
fix [#32518] Vertex slide crash sometimes.

Undo would leave BMEditMesh->me pointer NULL, this would likely crash EDBM_verts_mirror_cache_begin() too.

Rather then restore 'me', remove the pointer altogether and use BMEditMesh->ob->data to save us having to keep track of 2 pointers.

9 years agocode cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more places.
Campbell Barton [Mon, 10 Sep 2012 03:34:43 +0000 (03:34 +0000)]
code cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more places.

9 years agocode cleanup: use more specific args
Campbell Barton [Mon, 10 Sep 2012 02:45:29 +0000 (02:45 +0000)]
code cleanup: use more specific args

9 years agowhen pressing `play` report when the first frame can't be found.
Campbell Barton [Mon, 10 Sep 2012 02:04:02 +0000 (02:04 +0000)]
when pressing `play` report when the first frame can't be found.

9 years agocode cleanup: use single define for undo string size, was 64 mostly, but 512 in the UI.
Campbell Barton [Mon, 10 Sep 2012 01:55:58 +0000 (01:55 +0000)]
code cleanup: use single define for undo string size, was 64 mostly, but 512 in the UI.

9 years agostyle cleanup
Campbell Barton [Mon, 10 Sep 2012 01:34:42 +0000 (01:34 +0000)]
style cleanup

9 years agofix for own error in r50482.
Campbell Barton [Mon, 10 Sep 2012 01:22:04 +0000 (01:22 +0000)]
fix for own error in r50482.

9 years agostyle cleanup
Campbell Barton [Mon, 10 Sep 2012 01:07:20 +0000 (01:07 +0000)]
style cleanup

9 years agoFix #32513: incorrect color management in Material draw mode for Cycles.
Brecht Van Lommel [Sun, 9 Sep 2012 11:04:49 +0000 (11:04 +0000)]
Fix #32513: incorrect color management in Material draw mode for Cycles.

9 years agofix [#29072] Color pickers don't close properly when moving the mouse away
Campbell Barton [Sun, 9 Sep 2012 01:44:55 +0000 (01:44 +0000)]
fix [#29072] Color pickers don't close properly when moving the mouse away

instead of checking if the mouse is over another button to exit the popup.
Just check if the mouse is outside the rect-union between the button and the popup.

9 years agostyle cleanup:
Campbell Barton [Sun, 9 Sep 2012 00:00:21 +0000 (00:00 +0000)]
style cleanup:
also remove some redundant conversions int -> short -> int

9 years agofix for security flaw CVE-2008-1103, ref BZ #855092 on
Campbell Barton [Sat, 8 Sep 2012 23:26:15 +0000 (23:26 +0000)]
fix for security flaw CVE-2008-1103, ref BZ #855092 on

patch provided by Jochen Schmitt, made some minor edits.

9 years agominor improvements to saving quit.blend, print the OS error if the file fails to...
Campbell Barton [Sat, 8 Sep 2012 23:07:53 +0000 (23:07 +0000)]
minor improvements to saving quit.blend, print the OS error if the file fails to be created or written.

9 years agofix for error in own recent commit: do not hide alpha in HSV and Hex modes
Sv. Lockal [Sat, 8 Sep 2012 19:40:34 +0000 (19:40 +0000)]
fix for error in own recent commit: do not hide alpha in HSV and Hex modes

9 years agostyle cleanup
Campbell Barton [Sat, 8 Sep 2012 08:59:47 +0000 (08:59 +0000)]
style cleanup

9 years agostyle cleanup
Campbell Barton [Sat, 8 Sep 2012 06:40:03 +0000 (06:40 +0000)]
style cleanup

9 years ago== FFMPEG ==
Peter Schlaile [Fri, 7 Sep 2012 21:41:38 +0000 (21:41 +0000)]
== FFMPEG ==

This fixes [#32399] VSE doesn't show last 3 frames of Quicktime movie.

Some decoders store frames internally until EOF.
So one has to feed the decoding engine with empty packets after EOF
until all frames could be extracted properly.

9 years agoNew i18n font file for Blender, now including Hebrew charset!
Bastien Montagne [Fri, 7 Sep 2012 17:59:45 +0000 (17:59 +0000)]
New i18n font file for Blender, now including Hebrew charset!

9 years agoAdding Hebrew language.
Bastien Montagne [Fri, 7 Sep 2012 16:06:58 +0000 (16:06 +0000)]
Adding Hebrew language.

Note: looks like we do not have hebrew chars in current font... More FontForge fun ahead. :/

9 years agoinitial retina support for osx \ to take effect you must perhaps logout/in \i prefer...
Jens Verwiebe [Fri, 7 Sep 2012 15:44:20 +0000 (15:44 +0000)]
initial retina support for osx \ to take effect you must perhaps logout/in \i prefer in terminal: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -v -f

9 years agoFix for Cycles (CUDA) compilation (again ...). Moved the AttributeStandard enum typed...
Lukas Toenne [Fri, 7 Sep 2012 11:06:45 +0000 (11:06 +0000)]
Fix for Cycles (CUDA) compilation (again ...). Moved the AttributeStandard enum typedef and the attribute_standard_name mapping function to util_attribute/util_types headers, so they can properly be used by kernel and render files alike. This should avoid any std C includes which are not available in CUDA. Thanks to Sergey for help!

9 years agoFix for order of creating mesh and filling in SculptSession
Sergey Sharybin [Fri, 7 Sep 2012 10:59:01 +0000 (10:59 +0000)]
Fix for order of creating mesh and filling in SculptSession

This would use proper draw_pbvh for initially calculated PBVH.

Wasn't harmful since this flag used to be updated form update_mesh_elements,
but it's still better to have things consistent all over.

9 years agominor fix for previous commit. ripping a vert-edge connected to a face would always...
Campbell Barton [Fri, 7 Sep 2012 06:46:26 +0000 (06:46 +0000)]
minor fix for previous commit. ripping a vert-edge connected to a face would always choose the face even if the mouse is closer to the edge, now check both edges and faces when ripping from a non wire vertex

9 years agominor improvements to rip
Campbell Barton [Fri, 7 Sep 2012 06:31:54 +0000 (06:31 +0000)]
minor improvements to rip
- rip tool didnt select the best edge to rip for wire verts (no connected faces)
- ripping one vert with 2 edges connected didnt work.

9 years agofixes for weight paint mode:
Campbell Barton [Fri, 7 Sep 2012 05:54:54 +0000 (05:54 +0000)]
fixes for weight paint mode:
- sample weight didnt work when the object was transformed.
- sample weight didnt work when vertex selection was enabled.
- 'All faces' option is used by weight paint mode, but there was no UI access.

add ED_mesh_pick_face_vert(). which uses the face selection buffer but returns the closest vertex.

9 years agofix Shift+LMB select when in weight-vertex-select mode. (it was mixing up vert/face...
Campbell Barton [Fri, 7 Sep 2012 02:18:04 +0000 (02:18 +0000)]
fix Shift+LMB select when in weight-vertex-select mode. (it was mixing up vert/face index values and didnt work at all)