Commit Graph

40345 Commits

Author SHA1 Message Date
c9eb93d9fd fix for possible dounle fclose in makesrna's replace_if_different function. 2013-07-29 08:01:12 +00:00
cdc315a69b bmesh optimization (noted as todo), avoid recalculating normal every time BM_face_legal_splits() runs,
assume normal is valid (assert when its not).
2013-07-29 06:04:09 +00:00
33a9cb6caa 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.
2013-07-29 04:45:40 +00:00
a25f00301f make code style of makesrna.c conform to the rest of blender, was also some odd indentation for property and struct definitions. 2013-07-29 04:18:01 +00:00
9a4b2126a9 rename term 'grid node' --> 'grid division' wtr snapping tips. 2013-07-29 03:01:53 +00:00
4f02555004 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).
2013-07-28 19:53:46 +00:00
c754eaa0f9 add inline functions getting a single axis from mul_m3_v3() 2013-07-28 19:46:33 +00:00
fc4a777511 use '_exec' suffix for operator execute callbacks, also picky change to sizeof() use in BLI_array.h 2013-07-28 17:06:31 +00:00
b8e06518c9 add BLI_alloca.h, missed in previous commit 2013-07-28 12:17:00 +00:00
1448499d70 patch [#36233] Fix Halo and Billboard Normal and Behavior
from Vitor Balbio (vitorbalbio)

Fixes billboard flipping (flipped normals and textures too)
2013-07-28 12:03:53 +00:00
6864f2c285 move suspicious break statement in drawDispListsolid() to prevent falling through. 2013-07-28 11:15:26 +00:00
4982f200fa move alloca define into its own header since its not related to BLI_array 2013-07-28 10:38:25 +00:00
72f2917032 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.
2013-07-28 09:05:27 +00:00
b5890b3519 fix for freed memory access clearing tracks in the clip editor. 2013-07-28 07:11:00 +00:00
c4a50e9aeb remove unneeded NULL checks, add one for give_matarar() return value. 2013-07-28 06:37:58 +00:00
0cb9a83113 code cleanup: remove unused code 2013-07-27 18:17:19 +00:00
684c4cc40d 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.
2013-07-27 18:16:22 +00:00
52e54d3c01 remove unused code & some redundant NULL checks. 2013-07-27 16:39:00 +00:00
aaa284f505 cleanup ED_view3d_from_m4() ambiguity with NULL checks, now assert if dist is set up but ofs.
also small optimization for matrix conversion.
2013-07-27 14:44:52 +00:00
d7ff7ad3e9 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.
2013-07-27 14:17:20 +00:00
6aa001f48d 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.
2013-07-27 14:05:59 +00:00
d403537fc4 Code cleanup: Remove unused and unneeded code 2013-07-27 11:55:38 +00:00
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
f83d733a62 fix for reading outside allocated memory when switching to the 3D view. 2013-07-27 10:32:27 +00:00
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
9c8721e1a1 code cleanup for thumbnails:
- use URI_MAX define
- replace strcat with BLI_snprintf.
2013-07-27 09:26:22 +00:00
09aadea2cc remove unused code from object convert and indent. 2013-07-27 09:20:10 +00:00
e2ece45fec fix for possible out of bounds read, printing a warning with pointcache header. 2013-07-27 09:19:03 +00:00
f4f90e73e1 fix for writing to freed memory enabling texture node tree 2013-07-27 08:21:43 +00:00
d894e5e762 internal api: args passed to ui_but_equals_old() were wrong order. 2013-07-27 08:06:46 +00:00
d68917cb86 code cleanup: typos 2013-07-27 07:02:27 +00:00
8aa1bdbc89 simplify triangle joining and remove use of BLI_array. 2013-07-27 06:45:11 +00:00
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
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
91fc92794c Import of single bones used infinite bone size 2013-07-26 22:19:46 +00:00
bc84a50c13 fix [#36270] Crash with pinning 2013-07-26 16:19:26 +00:00
b7dad0b5c6 fix [#36286] UV face display not working for concave ngons 2013-07-26 15:35:16 +00:00
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
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
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
2945f512ba fix for incorrect null check in RE_engine_update_stats 2013-07-26 10:11:18 +00:00
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
501649a806 fix [#36277] Right click no longer selects the camera 2013-07-26 05:08:24 +00:00
29732f5d4f fix [#36283] Crash by activating "Clear Active" in Movie Clip Editor 2013-07-26 04:36:53 +00:00
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
09a9aa5720 add twist option to bridge tool (for circular loops) 2013-07-25 19:27:18 +00:00
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
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