8 years agoMerging r58701 through r58746 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Tue, 30 Jul 2013 19:05:29 +0000 (19:05 +0000)]
Merging r58701 through r58746 from trunk into soc-2013-depsgraph_mt

8 years agoUse malloc in cases when data is getting overwriten after allocation.
Sergey Sharybin [Tue, 30 Jul 2013 18:49:40 +0000 (18:49 +0000)]
Use malloc in cases when data is getting overwriten after allocation.

8 years agoCycles / Non-Progressive integrator:
Thomas Dinges [Tue, 30 Jul 2013 12:56:39 +0000 (12:56 +0000)]
Cycles / Non-Progressive integrator:
* Avoid check for !LABEL_TRANSPARENT in "kernel_path_non_progressive_lighting", transparency is either handled in the outer loop or in the "kernel_path_indirect" function, but not here.

8 years agofix: [#36148] Collada instance nodes are not scaled properly during import
Gaia Clary [Tue, 30 Jul 2013 12:18:24 +0000 (12:18 +0000)]
fix: [#36148] Collada instance nodes are not scaled properly during import

8 years agoapply world matrix only to armature, Bones and children get it implicit via parenting
Gaia Clary [Tue, 30 Jul 2013 11:10:04 +0000 (11:10 +0000)]
apply world matrix only to armature, Bones and children get it implicit via parenting

8 years agofunction renaming for own recently added BLI_math functions, suggested by Brecht.
Campbell Barton [Tue, 30 Jul 2013 10:58:36 +0000 (10:58 +0000)]
function renaming for own recently added BLI_math functions, suggested by Brecht.

8 years agofix for error in own recent changes to transform initialization, proportional editmod...
Campbell Barton [Tue, 30 Jul 2013 09:50:17 +0000 (09:50 +0000)]
fix for error in own recent changes to transform initialization, proportional editmode needs to skip hidden faces.

8 years agoCycles:
Thomas Dinges [Tue, 30 Jul 2013 09:26:45 +0000 (09:26 +0000)]
* Increase the maximum amount of closures per shader from 16 to 64, so more complex closure trees can be rendered.

I measured performance on CPU and GPU (Geforce 540M) and couldn't find a performance impact, but if someone encounters a noticeable impact on his system, please report.

8 years agoFix for [#36321] 'Mark Freestyle Edge' still showing with Cycles renderer
Thomas Dinges [Tue, 30 Jul 2013 09:00:31 +0000 (09:00 +0000)]
Fix for [#36321] 'Mark Freestyle Edge' still showing with Cycles renderer
* Now we hide Freestyle properties when "use_shading_nodes" is true.

8 years agoRemove superfluous iterations (caused by typo) and type casts in outliner
Sv. Lockal [Tue, 30 Jul 2013 08:45:45 +0000 (08:45 +0000)]
Remove superfluous iterations (caused by typo) and type casts in outliner

This significantly lowers the position of outliner_draw_tree_element in profiler
and partially fixes [#36260] (2,300 Objects Makes Blender Unresponsive)

8 years agoMinor change to the template that has some consequences for addons...
Lukas Toenne [Tue, 30 Jul 2013 08:30:15 +0000 (08:30 +0000)]
Minor change to the template that has some consequences for addons: use bpy.types.* base classes instead of bpy_types.*

The bpy_types classes cause issues when used in addons when loading on Blender startup (subclasses cannot be properly registered).

8 years agoCollada: renamed size_mat to scale_mat for clarity. removed obsolete variable definition
Gaia Clary [Tue, 30 Jul 2013 07:32:37 +0000 (07:32 +0000)]
Collada: renamed size_mat to scale_mat for clarity. removed obsolete variable definition

8 years agoCollada: unit converter was not initialized for ArmatureImporter
Gaia Clary [Tue, 30 Jul 2013 07:22:40 +0000 (07:22 +0000)]
Collada: unit converter was not initialized for ArmatureImporter

8 years agoMissed a couple of files for the vsync commit (r58729).
Mitchell Stokes [Mon, 29 Jul 2013 22:36:51 +0000 (22:36 +0000)]
Missed a couple of files for the vsync commit (r58729).

8 years agoBGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive...
Mitchell Stokes [Mon, 29 Jul 2013 22:31:32 +0000 (22:31 +0000)]
BGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive vsync via UI options in the render properties, or by using the new Python method bge.render.setVsync(). Win32 and X11 support are done via EXT_swap_control. Support for using EXT_swap_control on OS X still needs to be added to Ghost.

8 years agoBGE: Adding bge.physics as another alias for the PhysicsConstraints module.
Mitchell Stokes [Mon, 29 Jul 2013 22:20:06 +0000 (22:20 +0000)]
BGE: Adding bge.physics as another alias for the PhysicsConstraints module.

8 years agoCollada: Optimize Scale to scene. Only need to scale the root objects of a hierarchy
Gaia Clary [Mon, 29 Jul 2013 22:15:04 +0000 (22:15 +0000)]
Collada: Optimize Scale to scene. Only need to scale the root objects of a hierarchy

8 years agoCollada: Import now always rotates input to match blender's Z_UP axis
Gaia Clary [Mon, 29 Jul 2013 21:51:53 +0000 (21:51 +0000)]
Collada: Import now always rotates input to match blender's Z_UP axis

8 years agoAdded Scene scale calculator to UnitConverter for future usage (wip)
Gaia Clary [Mon, 29 Jul 2013 21:22:59 +0000 (21:22 +0000)]
Added Scene scale calculator to UnitConverter for future usage (wip)

8 years agoFix #36290: cycles generated texture coordinates were not sticking to the
Brecht Van Lommel [Mon, 29 Jul 2013 19:39:23 +0000 (19:39 +0000)]
Fix #36290: cycles generated texture coordinates were not sticking to the
surface again, got lost in an unrelated optimization.

8 years agoAdded/changed comment for clarification
Gaia Clary [Mon, 29 Jul 2013 17:27:27 +0000 (17:27 +0000)]
Added/changed comment for clarification

8 years agoFix #36235: cycles crash deactivating render layer during rendering.
Brecht Van Lommel [Mon, 29 Jul 2013 15:32:24 +0000 (15:32 +0000)]
Fix #36235: cycles crash deactivating render layer during rendering.

8 years agoFix #36264, New modulo math node not viewable in GLSL mode. Modulo math operation...
Lukas Toenne [Mon, 29 Jul 2013 11:42:23 +0000 (11:42 +0000)]
Fix #36264, New modulo math node not viewable in GLSL mode. Modulo math operation was simply missing the switch statement for gpu execution.

8 years agofix [#36280] Dynamic Topology crashes with active face
Campbell Barton [Mon, 29 Jul 2013 09:18:35 +0000 (09:18 +0000)]
fix [#36280] Dynamic Topology crashes with active face

8 years agoadd asserts to ensure face normal is up to date.
Campbell Barton [Mon, 29 Jul 2013 09:12:23 +0000 (09:12 +0000)]
add asserts to ensure face normal is up to date.

8 years agoadd api call for initializing events from the windows eventstate.
Campbell Barton [Mon, 29 Jul 2013 08:29:04 +0000 (08:29 +0000)]
add api call for initializing events from the windows eventstate.

8 years agofix for possible dounle fclose in makesrna's replace_if_different function.
Campbell Barton [Mon, 29 Jul 2013 08:01:12 +0000 (08:01 +0000)]
fix for possible dounle fclose in makesrna's replace_if_different function.

8 years agoAdded check for address being freed by mempool free
Sergey Sharybin [Mon, 29 Jul 2013 06:49:18 +0000 (06:49 +0000)]
Added check for address being freed by mempool free

When blender is built in debug mode, BLI_mempool_free will
ensure address passed to the function actually belongs to
this pool.

8 years agoChecking unsigned value against >= 0 didn't make sense
Sergey Sharybin [Mon, 29 Jul 2013 06:49:11 +0000 (06:49 +0000)]
Checking unsigned value against >= 0 didn't make sense

Replaced with check of whether there're tasks in the pool
before removing one.

8 years agobmesh optimization (noted as todo), avoid recalculating normal every time BM_face_leg...
Campbell Barton [Mon, 29 Jul 2013 06:04:09 +0000 (06:04 +0000)]
bmesh optimization (noted as todo), avoid recalculating normal every time BM_face_legal_splits() runs,
assume normal is valid (assert when its not).

8 years agominor changes for confusing code.
Campbell Barton [Mon, 29 Jul 2013 04:45:40 +0000 (04:45 +0000)]
minor changes for confusing code.
- memset() was argument was truncated.
- outliner had redundant NULL check.
- node texture was allocating memory to make a unique name which isnt needed for a fixed size string.

8 years agomake code style of makesrna.c conform to the rest of blender, was also some odd inden...
Campbell Barton [Mon, 29 Jul 2013 04:18:01 +0000 (04:18 +0000)]
make code style of makesrna.c conform to the rest of blender, was also some odd indentation for property and struct definitions.

8 years agorename term 'grid node' --> 'grid division' wtr snapping tips.
Campbell Barton [Mon, 29 Jul 2013 03:01:53 +0000 (03:01 +0000)]
rename term 'grid node' --> 'grid division' wtr snapping tips.

8 years agoMerging r58475 through r58700 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Mon, 29 Jul 2013 02:49:36 +0000 (02:49 +0000)]
Merging r58475 through r58700 from trunk into soc-2013-depsgraph_mt

8 years agoUI / Code:
Thomas Dinges [Sun, 28 Jul 2013 22:12:19 +0000 (22:12 +0000)]
UI / Code:
Cody style changes for r58692.
* First of all, UI code is really simple, especially in such small panels, no need to comment obvious things like left/right column.
* "if 1" nested structs for code clarity? That's a really bad thing, especially if you have 3  lines which belong together, but only 2 of them are indented...

    sub = row.row() = obj.show_bounds
sub.prop(obj, "draw_bounds_type", text="")

* Empty line after layout = self.layout declarations, we still follow these Rules.


8 years agonew mesh tool for cleaning up meshes, splits up non-planar faces while they exceed...
Campbell Barton [Sun, 28 Jul 2013 19:53:46 +0000 (19:53 +0000)]
new mesh tool for cleaning up meshes, splits up non-planar faces while they exceed a given angle threshold
(access from the 'Mesh -> Clean' menu).

8 years agoadd inline functions getting a single axis from mul_m3_v3()
Campbell Barton [Sun, 28 Jul 2013 19:46:33 +0000 (19:46 +0000)]
add inline functions getting a single axis from mul_m3_v3()

8 years agouse '_exec' suffix for operator execute callbacks, also picky change to sizeof()...
Campbell Barton [Sun, 28 Jul 2013 17:06:31 +0000 (17:06 +0000)]
use '_exec' suffix for operator execute callbacks, also picky change to sizeof() use in BLI_array.h

8 years agoadd BLI_alloca.h, missed in previous commit
Campbell Barton [Sun, 28 Jul 2013 12:17:00 +0000 (12:17 +0000)]
add BLI_alloca.h, missed in previous commit

8 years agopatch [#36233] Fix Halo and Billboard Normal and Behavior
Campbell Barton [Sun, 28 Jul 2013 12:03:53 +0000 (12:03 +0000)]
patch [#36233] Fix Halo and Billboard Normal and Behavior
from Vitor Balbio (vitorbalbio)

Fixes billboard flipping (flipped normals and textures too)

8 years agopatch [#36296] object->display-properties subpanel layout cleanup
Campbell Barton [Sun, 28 Jul 2013 11:43:11 +0000 (11:43 +0000)]
patch [#36296] object->display-properties subpanel layout cleanup
from David Jeske (jeske), with minor edits of my own.

8 years agomove suspicious break statement in drawDispListsolid() to prevent falling through.
Campbell Barton [Sun, 28 Jul 2013 11:15:26 +0000 (11:15 +0000)]
move suspicious break statement in drawDispListsolid() to prevent falling through.

8 years agomove alloca define into its own header since its not related to BLI_array
Campbell Barton [Sun, 28 Jul 2013 10:38:25 +0000 (10:38 +0000)]
move alloca define into its own header since its not related to BLI_array

8 years agobmesh: skip error checks when building in release mode (minor speedup),
Campbell Barton [Sun, 28 Jul 2013 09:05:27 +0000 (09:05 +0000)]
bmesh: skip error checks when building in release mode (minor speedup),
also more strict use of BLI_array_declare(), only allow after array is declared.

8 years agofix for freed memory access clearing tracks in the clip editor.
Campbell Barton [Sun, 28 Jul 2013 07:11:00 +0000 (07:11 +0000)]
fix for freed memory access clearing tracks in the clip editor.

8 years agoremove unneeded NULL checks, add one for give_matarar() return value.
Campbell Barton [Sun, 28 Jul 2013 06:37:58 +0000 (06:37 +0000)]
remove unneeded NULL checks, add one for give_matarar() return value.

8 years agocode cleanup: remove unused code
Campbell Barton [Sat, 27 Jul 2013 18:17:19 +0000 (18:17 +0000)]
code cleanup: remove unused code

8 years agofix for BKE_deform_split_suffix()
Campbell Barton [Sat, 27 Jul 2013 18:16:22 +0000 (18:16 +0000)]
fix for BKE_deform_split_suffix()
- out of bounds read when passing in empty string.
- single character prefix didnt work.
- with no suffix, the string body was truncated.

8 years agoremove unused code & some redundant NULL checks.
Campbell Barton [Sat, 27 Jul 2013 16:39:00 +0000 (16:39 +0000)]
remove unused code & some redundant NULL checks.

8 years agocleanup ED_view3d_from_m4() ambiguity with NULL checks, now assert if dist is set...
Campbell Barton [Sat, 27 Jul 2013 14:44:52 +0000 (14:44 +0000)]
cleanup ED_view3d_from_m4() ambiguity with NULL checks, now assert if dist is set up but ofs.
also small optimization for matrix conversion.

8 years agocorrect sloppy NULL checks, in interface code:
Campbell Barton [Sat, 27 Jul 2013 14:17:20 +0000 (14:17 +0000)]
correct sloppy NULL checks, in interface code:
- uiPupMenuBegin was checking for NULL title but would still crash if it were NULL.
- now tag the function as 'nonnull' and remove NULL checks. make sure NULL isnt passed to it.

8 years agocode cleanup: remove redundant NULL checks and avoid writing to the source string.
Campbell Barton [Sat, 27 Jul 2013 14:05:59 +0000 (14:05 +0000)]
code cleanup: remove redundant NULL checks and avoid writing to the source string.
also rename BLI_replacestr() -> BLI_replacestrN() since it returns an allocated buffer.

8 years agoCode cleanup: Remove unused and unneeded code
Joshua Leung [Sat, 27 Jul 2013 11:55:38 +0000 (11:55 +0000)]
Code cleanup: Remove unused and unneeded code

8 years agoStyle Cleanup for r.58659
Joshua Leung [Sat, 27 Jul 2013 11:54:52 +0000 (11:54 +0000)]
Style Cleanup for r.58659

Use proper RNA API function that was designed to be used in this case instead of
using ugly syntax

8 years agofix for reading outside allocated memory when switching to the 3D view.
Campbell Barton [Sat, 27 Jul 2013 10:32:27 +0000 (10:32 +0000)]
fix for reading outside allocated memory when switching to the 3D view.

8 years agofix for possible use of uninitialized variable in pastebuf_match_path_property()
Campbell Barton [Sat, 27 Jul 2013 09:38:34 +0000 (09:38 +0000)]
fix for possible use of uninitialized variable in pastebuf_match_path_property()
wasn't checking if RNA_path_resolve() succeeded.

8 years agocode cleanup for thumbnails:
Campbell Barton [Sat, 27 Jul 2013 09:26:22 +0000 (09:26 +0000)]
code cleanup for thumbnails:
- use URI_MAX define
- replace strcat with BLI_snprintf.

8 years agoremove unused code from object convert and indent.
Campbell Barton [Sat, 27 Jul 2013 09:20:10 +0000 (09:20 +0000)]
remove unused code from object convert and indent.

8 years agofix for possible out of bounds read, printing a warning with pointcache header.
Campbell Barton [Sat, 27 Jul 2013 09:19:03 +0000 (09:19 +0000)]
fix for possible out of bounds read, printing a warning with pointcache header.

8 years agofix for writing to freed memory enabling texture node tree
Campbell Barton [Sat, 27 Jul 2013 08:21:43 +0000 (08:21 +0000)]
fix for writing to freed memory enabling texture node tree

8 years agointernal api: args passed to ui_but_equals_old() were wrong order.
Campbell Barton [Sat, 27 Jul 2013 08:06:46 +0000 (08:06 +0000)]
internal api: args passed to ui_but_equals_old() were wrong order.

8 years agocode cleanup: typos
Campbell Barton [Sat, 27 Jul 2013 07:02:27 +0000 (07:02 +0000)]
code cleanup: typos

8 years agosimplify triangle joining and remove use of BLI_array.
Campbell Barton [Sat, 27 Jul 2013 06:45:11 +0000 (06:45 +0000)]
simplify triangle joining and remove use of BLI_array.

8 years agofix for joining face selection after recent api change, also bmo_join_triangles_exec...
Campbell Barton [Sat, 27 Jul 2013 06:11:54 +0000 (06:11 +0000)]
fix for joining face selection after recent api change, also bmo_join_triangles_exec() wasn't filling in its 'face' output slot.

8 years agofix for bridge tool selection flushing (after recent api change), also exposed bug...
Campbell Barton [Sat, 27 Jul 2013 05:57:20 +0000 (05:57 +0000)]
fix for bridge tool selection flushing (after recent api change), also exposed bug in bmesh edgering-subdiv operator.

8 years agoImport of single bones used infinite bone size
Gaia Clary [Fri, 26 Jul 2013 22:19:46 +0000 (22:19 +0000)]
Import of single bones used infinite bone size

8 years agofix [#36270] Crash with pinning
Campbell Barton [Fri, 26 Jul 2013 16:19:26 +0000 (16:19 +0000)]
fix [#36270] Crash with pinning

8 years agofix [#36286] UV face display not working for concave ngons
Campbell Barton [Fri, 26 Jul 2013 15:35:16 +0000 (15:35 +0000)]
fix [#36286] UV face display not working for concave ngons

8 years agofix for error in BLI_buffer_declare_static(), the stack variable wasn't the right...
Campbell Barton [Fri, 26 Jul 2013 15:26:51 +0000 (15:26 +0000)]
fix for error in BLI_buffer_declare_static(), the stack variable wasn't the right size, from original commit 53440.
Caused UV stretch display to fail.

8 years agofix [#36282] Spin error with non uniform scale
Campbell Barton [Fri, 26 Jul 2013 11:15:22 +0000 (11:15 +0000)]
fix [#36282] Spin error with non uniform scale
add support for passing object matrix to bmesh transform operators.

8 years agouse math functions for copying matrix/vector types, also cast const pointers for...
Campbell Barton [Fri, 26 Jul 2013 10:43:23 +0000 (10:43 +0000)]
use math functions for copying matrix/vector types, also cast const pointers for freeing (clang error's out otherwise)

8 years agofix for incorrect null check in RE_engine_update_stats
Campbell Barton [Fri, 26 Jul 2013 10:11:18 +0000 (10:11 +0000)]
fix for incorrect null check in RE_engine_update_stats

8 years agooptimization: call one bmesh operator for rotate (not 3).
Campbell Barton [Fri, 26 Jul 2013 06:12:49 +0000 (06:12 +0000)]
optimization: call one bmesh operator for rotate (not 3).
added pivot_m4() utility function since rotating about an arbitrary point is handy.

8 years agofix [#36277] Right click no longer selects the camera
Campbell Barton [Fri, 26 Jul 2013 05:08:24 +0000 (05:08 +0000)]
fix [#36277] Right click no longer selects the camera

8 years agofix [#36283] Crash by activating "Clear Active" in Movie Clip Editor
Campbell Barton [Fri, 26 Jul 2013 04:36:53 +0000 (04:36 +0000)]
fix [#36283] Crash by activating "Clear Active" in Movie Clip Editor

8 years agoBGE Fix [#18804] Shadow type faces cast onto invisible faces (non-GLSL)
Daniel Stokes [Thu, 25 Jul 2013 23:42:20 +0000 (23:42 +0000)]
BGE Fix [#18804] Shadow type faces cast onto invisible faces (non-GLSL)

Changing the RayHit method to ignore invisible faces

8 years agoadd twist option to bridge tool (for circular loops)
Campbell Barton [Thu, 25 Jul 2013 19:27:18 +0000 (19:27 +0000)]
add twist option to bridge tool (for circular loops)

8 years agomesh tool to fill in holes, added in mesh clean menu,
Campbell Barton [Thu, 25 Jul 2013 18:43:05 +0000 (18:43 +0000)]
mesh tool to fill in holes, added in mesh clean menu,
unlike other face creation tools it copies data from surrounding faces.

8 years agofix for face normal flipping calculation.
Campbell Barton [Thu, 25 Jul 2013 18:16:55 +0000 (18:16 +0000)]
fix for face normal flipping calculation.

8 years agoFix for own commit, stub functions all use the STUB_ASSERT macro now.
Lukas Toenne [Thu, 25 Jul 2013 16:04:26 +0000 (16:04 +0000)]
Fix for own commit, stub functions all use the STUB_ASSERT macro now.

8 years agoFix for bad level call introduced in r58597.
Lukas Toenne [Thu, 25 Jul 2013 15:38:22 +0000 (15:38 +0000)]
Fix for bad level call introduced in r58597.

8 years agoskip creating the draw-string for number buttons while editing the text (value was...
Campbell Barton [Thu, 25 Jul 2013 13:24:32 +0000 (13:24 +0000)]
skip creating the draw-string for number buttons while editing the text (value was overwritten)

8 years agoui: internal change. replace strcat with BLI string functions for key-event drawing.
Campbell Barton [Thu, 25 Jul 2013 13:18:11 +0000 (13:18 +0000)]
ui: internal change. replace strcat with BLI string functions for key-event drawing.

8 years agoadd missing break to space-buttons listener, also rewind own recent change (uiPopupBl...
Campbell Barton [Thu, 25 Jul 2013 12:46:20 +0000 (12:46 +0000)]
add missing break to space-buttons listener, also rewind own recent change (uiPopupBlockHandle.retvec size)

8 years agoadd missing va_end() calls.
Campbell Barton [Thu, 25 Jul 2013 12:37:22 +0000 (12:37 +0000)]
add missing va_end() calls.

8 years agoadjust createSpaceNormalTangent so it can take values from a matrix without having...
Campbell Barton [Thu, 25 Jul 2013 12:07:55 +0000 (12:07 +0000)]
adjust createSpaceNormalTangent so it can take values from a matrix without having to negate the plane first.
also add ED_armature_ebone_to_mat3/4 since there were quite a few places that did this inline.

8 years agofix [#36278] X,Y Direction wrong after bpy.ops.view3d.viewnumpad
Campbell Barton [Thu, 25 Jul 2013 11:05:08 +0000 (11:05 +0000)]
fix [#36278] X,Y Direction wrong after bpy.ops.view3d.viewnumpad

the cause of the problem was the orientation from the active object was inconstant.
copying the obmat directly gave a different result then getting the normal,tangent from getTransformOrientation and passing to createSpaceNormalTangent.

8 years agooptimization: manipulator was looping over all objects on redraw when the active...
Campbell Barton [Thu, 25 Jul 2013 08:36:35 +0000 (08:36 +0000)]
optimization: manipulator was looping over all objects on redraw when the active object was being used and it didn't need to.

8 years agotriangulate and beauty fill also needed changes to selection handling after recent...
Campbell Barton [Thu, 25 Jul 2013 07:00:07 +0000 (07:00 +0000)]
triangulate and beauty fill also needed changes to selection handling after recent changes.

8 years agocorrect problem with limited-dissolve not leaving the selection correctly (caused...
Campbell Barton [Thu, 25 Jul 2013 06:05:44 +0000 (06:05 +0000)]
correct problem with limited-dissolve not leaving the selection correctly (caused by BM_elem_attrs_copy no longer dealing with selection)

8 years agoadd api function BLI_path_append to add to a path (and ensure a seperator), replaces...
Campbell Barton [Wed, 24 Jul 2013 21:25:06 +0000 (21:25 +0000)]
add api function BLI_path_append to add to a path (and ensure a seperator), replaces BLI_join_dirfile when the dir and the destimation were the same.

8 years agofix/workaround [#36269] Crash upon right click on menu and left click on item
Campbell Barton [Wed, 24 Jul 2013 20:53:24 +0000 (20:53 +0000)]
fix/workaround [#36269] Crash upon right click on menu and left click on item

8 years agointernal change for ui_mouse_motion_towards_*** use,
Campbell Barton [Wed, 24 Jul 2013 20:50:30 +0000 (20:50 +0000)]
internal change for ui_mouse_motion_towards_*** use,
only run these checks for buttons using the UI_BLOCK_MOVEMOUSE_QUIT flag.
no functional change but makes debugging easier and was calculating mouse motion in relation to some popups for no reason.

8 years agodyn-topo: maintain materials for new faces.
Campbell Barton [Wed, 24 Jul 2013 19:58:16 +0000 (19:58 +0000)]
dyn-topo: maintain materials for new faces.
also minor optimization for BM_edge_in_face(), check edges radial loops rather then the faces edges
since normally there are 0-2 faces attached to an edge compared to 3+ edges in a face.

8 years agointernal bmesh api change: BM_elem_attrs_copy() no longer copies the selection flag.
Campbell Barton [Wed, 24 Jul 2013 19:31:58 +0000 (19:31 +0000)]
internal bmesh api change: BM_elem_attrs_copy() no longer copies the selection flag.
this was slowing down modifiers since the selection flags would be copied and flushed to connected geometry.

8 years agocode cleanup: use iterator macros, and replace BM_LOOPS_OF_FACE with direct loop...
Campbell Barton [Wed, 24 Jul 2013 18:38:55 +0000 (18:38 +0000)]
code cleanup: use iterator macros, and replace BM_LOOPS_OF_FACE with direct loop access when converting a bmesh to a mesh.

8 years agocurve only supported radius smoothing, add smooth for tilt and weight.
Campbell Barton [Wed, 24 Jul 2013 14:30:45 +0000 (14:30 +0000)]
curve only supported radius smoothing, add smooth for tilt and weight.

8 years ago- add individual origin support for curves and improve the orientation calculations...
Campbell Barton [Wed, 24 Jul 2013 13:56:36 +0000 (13:56 +0000)]
- add individual origin support for curves and improve the orientation calculations for curve handles,
- add support for using the active point's orientation.
- add support for creating new custom orientations from curves.
- fix error where only the last selected curve handle was taken into account for manipulator orientations.

8 years agosequencer: replace warning message with assert, was printing when copying masks and...
Campbell Barton [Wed, 24 Jul 2013 07:11:00 +0000 (07:11 +0000)]
sequencer: replace warning message with assert, was printing when copying masks and movieclips but went by unnoticed.

8 years agofix [#36262] Paste strip with video or sound content from another file crashes Blender
Campbell Barton [Wed, 24 Jul 2013 06:51:04 +0000 (06:51 +0000)]
fix [#36262] Paste strip with video or sound content from another file crashes Blender

existing code was very stupid.

- all ID pointers for clipboard strips are handled uniformly.
- clipboard stores a duplicate ID pointer which are restored on paste.
- restoring pointers...
-- use ID's that are still in the database (copy&paste within the same file).
-- fallback to name lookup.
-- fallback to loading them from the original filepath (movie-clip and sound only).

also fix bug pasting where initialing the sound wasn't done if there was no frame-offset.