Commit Graph

48956 Commits

Author SHA1 Message Date
Thomas Dinges
45227e25fe Merged revision(s) 58452-58584 from trunk/blender into soc-2013-dingto. 2013-07-24 21:56:06 +00:00
Campbell Barton
ec3fce8e27 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. 2013-07-24 21:25:06 +00:00
Campbell Barton
9c0e331f81 fix/workaround [#36269] Crash upon right click on menu and left click on item 2013-07-24 20:53:24 +00:00
Campbell Barton
b09de65c8d 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.
2013-07-24 20:50:30 +00:00
Campbell Barton
2d2f5f59d7 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.
2013-07-24 19:58:16 +00:00
Campbell Barton
19496ab62a 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.
2013-07-24 19:31:58 +00:00
Campbell Barton
cdac157f4c code cleanup: use iterator macros, and replace BM_LOOPS_OF_FACE with direct loop access when converting a bmesh to a mesh. 2013-07-24 18:38:55 +00:00
Campbell Barton
df0114a17a curve only supported radius smoothing, add smooth for tilt and weight. 2013-07-24 14:30:45 +00:00
Campbell Barton
b6f58d0ea1 - 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.
2013-07-24 13:56:36 +00:00
Campbell Barton
57a4070b9d sequencer: replace warning message with assert, was printing when copying masks and movieclips but went by unnoticed. 2013-07-24 07:11:00 +00:00
Campbell Barton
576161b186 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.
2013-07-24 06:51:04 +00:00
Daniel Stokes
d0f225393c BGE Fix [#29575] Object not drawn in game engine
Implementing a GetBlenderImage for KX_BlenderMaterial so that modifiers draw correctly in multitexture mode. The preexisting limitation of 1 texture per material on objects with modifiers in multitexture mode still exists.
2013-07-24 05:12:51 +00:00
Campbell Barton
ab8e2cb900 pasting strips in the sequencer didn't check if they overlap existing strips. 2013-07-24 05:01:22 +00:00
Daniel Stokes
017d7b5447 BGE fix [#21488] Pumpkin in Gamekit Tutorial flips upside down
A reference was being grabbed when a copy was wanted.
2013-07-24 00:32:26 +00:00
Campbell Barton
f77405356a remove use_relative option from simple deform,
all modifiers should be using object transformations relatively.
2013-07-23 19:31:49 +00:00
Campbell Barton
8ef3b51325 fix [#36256] Checker Deselect, failed with de-selected active face. 2013-07-23 18:49:44 +00:00
Campbell Barton
9b16b105f1 avoid calling context functions when direct access is possible. 2013-07-23 18:30:06 +00:00
Bastien Montagne
78490c0a7b Fix [#36259] Select linked flat faces with Shift+Ctrl+Alt+F does not work in ver. 2.68
Code was cleaning BM_ELEM_TAG flag of verts, when it actually uses the one of faces...
2013-07-23 18:03:40 +00:00
Thomas Dinges
965e0aeb59 Cycles / CMJ:
* path_rng_2D() was missing an else branch for the sobol case after fix in r57383.
2013-07-23 16:23:30 +00:00
Thomas Dinges
a3ccc4eaeb * Compile fix for r58542, on Windows "subdir" was unknown. 2013-07-23 16:04:49 +00:00
Campbell Barton
a788cca141 correct own error in recent edits to editderivedmesh 2013-07-23 15:05:33 +00:00
Campbell Barton
e1928790ae use binary prefix for file sizes (old todo). 2013-07-23 15:01:59 +00:00
Campbell Barton
b05d5ed657 let the enter key active text buttons and the unlink button 2013-07-23 14:55:47 +00:00
Campbell Barton
e50c37d90f code cleanup: remove deprecated bevel code (unused since 2.64) 2013-07-23 14:28:19 +00:00
Campbell Barton
cbf63e4698 fix for crash in track_markers_freejob (use freed memory) 2013-07-23 14:22:47 +00:00
Campbell Barton
46e911d19b fix for crash when unlinking a scene from the renderlayers, also no need for PROP_ID_SELF_CHECK here. 2013-07-23 14:09:53 +00:00
Campbell Barton
3ff3d1bc0f replace use of strcat() where the string offset is known.
also correct bad logic with converting a textblock to 3d-text, bytes-vs-number of chars wasn't handled right.
2013-07-23 12:49:30 +00:00
Campbell Barton
a5bc021943 code cleanup: remove unused material/texture naming functions. 2013-07-23 12:45:28 +00:00
Campbell Barton
769c566672 code cleanup: remove dead code, view3d panel was building a menu string and not using it. 2013-07-23 12:18:12 +00:00
Antony Riakiotakis
c8ed6f79b5 Fix #36225, spacing was halved and set to zero for texture paint brushes that had spacing of 1. Related to own changes to maintain spacing consistent between 2.67-2.66. 2013-07-23 11:13:39 +00:00
Campbell Barton
fb92835819 bge: de-duplicate cleanup code for empty mesh error case 2013-07-23 10:59:29 +00:00
Campbell Barton
d9b0f660c9 prepare for 'a' bugfix release, splash and version bump. 2013-07-23 08:10:46 +00:00
Campbell Barton
6f8913b498 replave isfinite with finite for msvc 2013-07-23 07:40:07 +00:00
Bastien Montagne
8069729552 Minor UI typo fix... ;) 2013-07-23 06:58:05 +00:00
Daniel Stokes
f7037737f3 BGE fix [#35472] Sun variance shadows does not work in game engine
The game engine had depth testing enabled when blurring the shadows which caused the blurring to not work properly.
2013-07-23 00:52:49 +00:00
Campbell Barton
c49a9c25fc fix own regression, OpenGL render with 'New Window' display-mode was broken
need to re-assign after opening a new window.
2013-07-22 23:44:46 +00:00
Campbell Barton
3e40717000 use BLI_bitmap for crazyspace vertex tagging. 2013-07-22 23:33:53 +00:00
Campbell Barton
04ea8c0ee8 remove the pointer from BLI_bitmap's typedef,
hides that an arg passed is really an array which may be modified by other functions.
2013-07-22 23:20:48 +00:00
Campbell Barton
b7bf20d950 optimization: only calculate the normals for passing into derivedMesh foreachMappedVert/foreachMappedFaceCenter when needed,
this means in editmode with wire draw, face and vertex normals don't have to be calculated at all.

in most cases the normals are not used so add a flag that makes calculating them only for functions that need them.
also fix face normal calculation for CDDM, was using quad calculation for ngons too.
2013-07-22 22:59:47 +00:00
Mitchell Stokes
33e52d0df4 BGE: Fix for [#34398] "«illegal operator» in Expression Controller" reported by Andrey Kashlak (andreymal)
The expressions system now supports the not operator on ints and floats.
2013-07-22 22:46:17 +00:00
Campbell Barton
1b85328545 hidden-wire draw option: always use the cage when masking out faces otherwise modifiers give odd results. 2013-07-22 21:45:01 +00:00
Campbell Barton
0682ade250 fix/workaround for crash in ocean modifier when size is zero (causes invalid array index/lookups). 2013-07-22 21:02:45 +00:00
Campbell Barton
003df3d2de fix [#36247] Modifier Ocean (Geometry in Displace)- Subdivision Surface
regression in 2.68
2013-07-22 20:53:52 +00:00
Campbell Barton
3f53c33d4a fix [#36248] Crash using factor input on color mix node. 2013-07-22 19:59:07 +00:00
Sv. Lockal
6e98932e90 Allow creation of mask nodes in compositor with drag&drop of mask datablocks
Also remove superfluous "deselect all" operation in drag&drop for images
2013-07-22 19:24:39 +00:00
Campbell Barton
02b0c227fe fix regression in 2.68 [#36240] Painting Undo Enable Face paint Crash 2013-07-22 18:19:02 +00:00
Campbell Barton
e590abfb87 optimization:
- halve the number of allocs in layerInterp_mdeformvert list creation.
- use direct loop access in emDM_copyLoopArray
2013-07-22 18:01:27 +00:00
Campbell Barton
90fdaa8219 optimization: lazy initialize EditDerivedBMesh members vertexNos, polyNos.
also add polyCos array which cache's face centers, gives overall ~20% speedup to drawing on a high-poly mesh in face-editmode.
2013-07-22 16:49:37 +00:00
Sergej Reich
be7004237c cloth: Fix [#36224] Cloth Simulation Doesn't Work on Rearranging Modifiers
Don't return imediately when simulation has changed.
It's not needed and prevented proper initialization on startframe when
simulation changed.
2013-07-22 15:35:29 +00:00
Campbell Barton
57ce6d1470 old todo, rotate around individual origins now supports connected face/edge islands.
previously this gave very odd/annoying results, see bug reports [#36134], [#35419]
2013-07-22 14:50:38 +00:00