Commit Graph

49081 Commits

Author SHA1 Message Date
Joshua Leung
d403537fc4 Code cleanup: Remove unused and unneeded code 2013-07-27 11:55:38 +00:00
Joshua Leung
59fabbb4f7 Style Cleanup for r.58659
Use proper RNA API function that was designed to be used in this case instead of
using ugly syntax
2013-07-27 11:54:52 +00:00
Campbell Barton
f83d733a62 fix for reading outside allocated memory when switching to the 3D view. 2013-07-27 10:32:27 +00:00
Campbell Barton
96dbc60e2d fix for possible use of uninitialized variable in pastebuf_match_path_property()
wasn't checking if RNA_path_resolve() succeeded.
2013-07-27 09:38:34 +00:00
Campbell Barton
9c8721e1a1 code cleanup for thumbnails:
- use URI_MAX define
- replace strcat with BLI_snprintf.
2013-07-27 09:26:22 +00:00
Campbell Barton
09aadea2cc remove unused code from object convert and indent. 2013-07-27 09:20:10 +00:00
Campbell Barton
e2ece45fec fix for possible out of bounds read, printing a warning with pointcache header. 2013-07-27 09:19:03 +00:00
Campbell Barton
f4f90e73e1 fix for writing to freed memory enabling texture node tree 2013-07-27 08:21:43 +00:00
Campbell Barton
d894e5e762 internal api: args passed to ui_but_equals_old() were wrong order. 2013-07-27 08:06:46 +00:00
Campbell Barton
d68917cb86 code cleanup: typos 2013-07-27 07:02:27 +00:00
Campbell Barton
8aa1bdbc89 simplify triangle joining and remove use of BLI_array. 2013-07-27 06:45:11 +00:00
Campbell Barton
6b3abde8d4 fix for joining face selection after recent api change, also bmo_join_triangles_exec() wasn't filling in its 'face' output slot. 2013-07-27 06:11:54 +00:00
Campbell Barton
a0969adb4e fix for bridge tool selection flushing (after recent api change), also exposed bug in bmesh edgering-subdiv operator. 2013-07-27 05:57:20 +00:00
Gaia Clary
91fc92794c Import of single bones used infinite bone size 2013-07-26 22:19:46 +00:00
Campbell Barton
bc84a50c13 fix [#36270] Crash with pinning 2013-07-26 16:19:26 +00:00
Campbell Barton
b7dad0b5c6 fix [#36286] UV face display not working for concave ngons 2013-07-26 15:35:16 +00:00
Campbell Barton
e3f6875df0 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.
2013-07-26 15:26:51 +00:00
Campbell Barton
5dc3cfc983 fix [#36282] Spin error with non uniform scale
add support for passing object matrix to bmesh transform operators.
2013-07-26 11:15:22 +00:00
Campbell Barton
7c58ec9337 use math functions for copying matrix/vector types, also cast const pointers for freeing (clang error's out otherwise) 2013-07-26 10:43:23 +00:00
Campbell Barton
2945f512ba fix for incorrect null check in RE_engine_update_stats 2013-07-26 10:11:18 +00:00
Campbell Barton
29df776b89 optimization: call one bmesh operator for rotate (not 3).
added pivot_m4() utility function since rotating about an arbitrary point is handy.
2013-07-26 06:12:49 +00:00
Campbell Barton
501649a806 fix [#36277] Right click no longer selects the camera 2013-07-26 05:08:24 +00:00
Campbell Barton
29732f5d4f fix [#36283] Crash by activating "Clear Active" in Movie Clip Editor 2013-07-26 04:36:53 +00:00
Daniel Stokes
4f8fd8c68b BGE Fix [#18804] Shadow type faces cast onto invisible faces (non-GLSL)
Changing the RayHit method to ignore invisible faces
2013-07-25 23:42:20 +00:00
Campbell Barton
09a9aa5720 add twist option to bridge tool (for circular loops) 2013-07-25 19:27:18 +00:00
Campbell Barton
4bc32d5ded mesh tool to fill in holes, added in mesh clean menu,
unlike other face creation tools it copies data from surrounding faces.
2013-07-25 18:43:05 +00:00
Campbell Barton
66d9c0def9 fix for face normal flipping calculation. 2013-07-25 18:16:55 +00:00
Lukas Toenne
b9e34d2938 Fix for own commit, stub functions all use the STUB_ASSERT macro now. 2013-07-25 16:04:26 +00:00
Lukas Toenne
2af08ee7ea Fix for bad level call introduced in r58597. 2013-07-25 15:38:22 +00:00
Campbell Barton
aed11512fc skip creating the draw-string for number buttons while editing the text (value was overwritten) 2013-07-25 13:24:32 +00:00
Campbell Barton
55640288d2 ui: internal change. replace strcat with BLI string functions for key-event drawing. 2013-07-25 13:18:11 +00:00
Campbell Barton
40d9ab1139 add missing break to space-buttons listener, also rewind own recent change (uiPopupBlockHandle.retvec size) 2013-07-25 12:46:20 +00:00
Campbell Barton
62b541faa3 add missing va_end() calls. 2013-07-25 12:37:22 +00:00
Campbell Barton
e69fdfab30 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.
2013-07-25 12:07:55 +00:00
Campbell Barton
b2b0b58fb5 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.
2013-07-25 11:05:08 +00:00
Campbell Barton
aec8cff9ab optimization: manipulator was looping over all objects on redraw when the active object was being used and it didn't need to. 2013-07-25 08:36:35 +00:00
Campbell Barton
a15e9ca495 triangulate and beauty fill also needed changes to selection handling after recent changes. 2013-07-25 07:00:07 +00:00
Campbell Barton
3270031660 correct problem with limited-dissolve not leaving the selection correctly (caused by BM_elem_attrs_copy no longer dealing with selection) 2013-07-25 06:05:44 +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