Commit Graph

41132 Commits

Author SHA1 Message Date
Campbell Barton 30695da261 another fix for [#36694], user submitted a new testfile that crashes without pointer lists being cleared. 2013-09-12 01:41:16 +00:00
Antony Riakiotakis f16047c2df Better fix for #36688.
Throw a python error if user attempts to use CurveMap without calling
CurveMapping.initialize() first. Added access to the initialize function
to CurveMapping on RNA level.

Thanks to Campbel for the help and remarks!
2013-09-11 23:28:23 +00:00
Daniel Stokes 494687908c BGE: Potential fix for [#35522] Broken game engine compatibility since 2.66a on some ATI cards?
Disabling display lists for legacy ATI cards since they don't support display lists well.

Also removing an unused variable from the display list rasterizer.
2013-09-11 23:24:45 +00:00
Campbell Barton 202109a8f5 code cleanup: set enums as static or add RNA_enum_types.h where they are used elsewhere.
also minor style cleanup.
2013-09-11 21:27:14 +00:00
Campbell Barton a144793af1 fix uninitalized var with new normal calculation function. 2013-09-11 21:23:09 +00:00
Brecht Van Lommel 1b55158753 Fix use of uninitialized variable in new Mesh.calc_normals_split. 2013-09-11 18:57:58 +00:00
Brecht Van Lommel e19006b8ce Fix #36705: UV pack island crashing after recent change. 2013-09-11 18:57:56 +00:00
Lukas Toenne ba68fea78b Fix #36700, z-depth not rendering properly at (n*256)+1 dimensions.
The chunk indices for scheduling chunks based on a given area were calculated incorrectly. This caused chunks at the very border of the render (pixels 256..257) to be omitted, leading to incorrect values
in the Z buffer of the test file, which in turn caused wrong normalization range and the resulting almost-white image.
Also added a dedicated executePixel function for Z buffer to avoid any interpolation of Z values.
2013-09-11 17:34:32 +00:00
Sergey Sharybin 9ea032f8e0 Enable transform helpline in clip editor 2013-09-11 11:43:43 +00:00
Sergey Sharybin 9b09af0dca Fix #36701: Mask pivioting doesnt honor parenting
Made mask transformation aware of parent matrix.
2013-09-11 10:06:54 +00:00
Lukas Toenne b551476dbd Revert r60034 and proper fix for #36698 by Sergey Sharybin. NULL pointer checks should never be done in color management. Instead this makes sure the look identifier is always initialized correctly to
the default if not defined.
2013-09-11 09:02:59 +00:00
Campbell Barton 17d749eaad replace inline index lookup with BLI_findindex 2013-09-11 07:36:40 +00:00
Nathan Letwory 801b8430a2 Add read-only access to index data for current line, top line and visible lines count. 2013-09-11 07:23:23 +00:00
Campbell Barton 2f6c748bb9 fix [#36020] SmartUV Project is messy on a cube
was using very simple/stupid check to rotate us islands, replace with box_fit_2d() function.

missed docstring last commit.
2013-09-11 07:10:15 +00:00
Lukas Toenne e0b2111942 Fix #36698 Cycles MinGW64 Mike Pan scene crashes instantly. Missing pointer check in color management look access from r59945. The look_desc pointer is NULL if the look string is undefined (empty). 2013-09-11 07:07:16 +00:00
Campbell Barton d2d1025e4a add mathutils.geometry.box_fit_2d() to wrap BLI_convexhull_aabb_fit_points_2d() 2013-09-11 06:56:51 +00:00
Campbell Barton 3579dfe23a interface, replace '|' with define UI_SEP_CHAR 2013-09-11 05:06:27 +00:00
Campbell Barton 90ff86a6d9 fix [#36699] ASCII-character "|" blocks parenting
don't split '|' for rna-property search buttons (but keep for operator search).
2013-09-11 04:56:35 +00:00
Campbell Barton f81f6c5019 take the decender into account when drawing console text.
also add data types wm and mask to dataname() and unshadow var in ghost/x11
2013-09-11 04:14:27 +00:00
Campbell Barton a4f12a3e31 fix [#36697] Topology mirror causes vertices to jump?
don't give up too early finding unique geometry by keeping track of edges with matching vertex hashes and keep checking for unique topology as long as the total of these edges keeps increasing.
2013-09-11 02:36:37 +00:00
Campbell Barton 44ec0b0aab uv-pack operator: option to rotate uv islands to fit in the optimal rectangle when packing. 2013-09-10 23:11:58 +00:00
Campbell Barton f171f4e270 correct own recent edits, area for text line numbers drawing was too small. 2013-09-10 21:45:54 +00:00
Campbell Barton ab8d88ac18 add angle_to_mat2 utility function. 2013-09-10 20:45:47 +00:00
Brecht Van Lommel 734eaab545 Fix #36327: cycles render layers exclude layers animation did not work well.
This is kind of another way to animate layers which is disabled, but add an
exception to make this case work.
2013-09-10 20:26:34 +00:00
Campbell Barton 92d94ccb08 misc minor changes
- make cmake osx use of -ftemplate-depth match scons.
- use array size within sizeof(), more compact.
- replace AT with __func__ where the function is unique enough.
- BLI_box_pack_2D -> 2d to match other functions.
- rename new mesh normal calculation to mesh.calc_normals_split()
2013-09-10 19:23:39 +00:00
Bastien Montagne 773ea29b4a Possible fix for MSVC compiling (grr...). 2013-09-10 15:41:01 +00:00
Bastien Montagne 135f6a72d4 Split normals API, to get per-vertex per-face normals, useful to export sharp edges in a compatible way.
Many thanks to Campbell and Brecht for reviews.
2013-09-10 15:26:12 +00:00
Bastien Montagne 44c7a87ada Update to writefile: do not save TEMPORARY or NO_COPY CD layers!
Neede for next commit (split normals API).
2013-09-10 15:24:31 +00:00
Brecht Van Lommel e052fc9819 Fix #36271: missing (+) icon for toolbar in compositing layout in default startup.blend. 2013-09-10 13:25:39 +00:00
Brecht Van Lommel b6bdb122c2 startup.blend: save images as RGBA by default, to avoid losing data when
forgetting to change it from RGB when painting images or saving renders.

This makes more sense in the new alpha pipeline, renders no longer contain an
alpha channel that does not match the RGB channels, so saving files as RGBA
should give the expected results when opening them in other applications.
2013-09-10 13:25:37 +00:00
Brecht Van Lommel b5e1c48ca7 startup.blend: add a function BLO_update_defaults_startup_blend to change
default settings in the startup.blend without having to actually save and embed
the file, which can be a tricky process and is problematic in branches and
patches.

This function can be emptied each time a new startup.blend is committed.
2013-09-10 13:25:35 +00:00
Brecht Van Lommel f40566e5a4 Fix #36577: sculpt area plane texture mapping + random angle did not work. 2013-09-10 13:25:33 +00:00
Bastien Montagne 17a7c2425c Another DNA cleanup (enums instead of defines). 2013-09-10 13:13:04 +00:00
Bastien Montagne 4a2f6447ef Core code for split normals computation. Many thanks to ideasman for is optimization guiding and code reviews!
Note the API is not yet committed, as it may need a few more checks & tweaks. ;)
2013-09-10 12:48:08 +00:00
Sergey Sharybin b56f8b139b Enable view3d-like shortcuts for pivot point in clip editor 2013-09-10 12:46:27 +00:00
Sergey Sharybin c4e4329f29 Don't show 2D cursor in tracking mode i pivoting is not set to 2D cursor 2013-09-10 12:46:23 +00:00
Sergey Sharybin e72c6f191f Tweaks to plane track
- Do plane re-evaluation only when transform is actually done.
  Before this re-evaluation happened on every mouse move.

- Added a flag "Auto Keyframe" for the plane track, which does:

  * If Auto Keyframe is enabled, then every manual edit of the
    plane will create a new keyframe at current frame and update
    plane motion between current frame and previous/next keyframe.

    This now also implies blending detected motion with neighbor
    keyframes, so there's no jump happening.

    No automatic update on manual point tracks edit will happen.

  * If auto Keyframe is disabled, then no keyframes are adding
    to the plane and every plane tweak will re-evaluate in on
    the whole frame range.

    In this case manual tweaks to point tracks and re-tracking
    them implies plane re-evaluation.
2013-09-10 12:46:18 +00:00
Campbell Barton 0f81ea0db9 remove redundant indirection in asserts 2013-09-10 11:47:21 +00:00
Campbell Barton 73be170fb5 add BLI_SMALLSTACK_***, macros: stack doesn't have a fixed size, it uses stack memory and never allocates.
it can be added and removed many times per function but will always remain the size of the maximum number of items.

not used yet, added for normal calculation function from mont29.
2013-09-10 11:04:20 +00:00
Thomas Dinges 561e82e927 * Compile fix for r59990. 2013-09-10 09:06:24 +00:00
Lukas Toenne 4e9145fa1c makesrna fix: The C++ wrapper functions for collection lookup (both int and string) were not clearing the return pointer if no item is found, but only in case there is a custom lookup function defined.
This causes trouble with Cycles because the C++ API uses the returned pointer to determine validity - if no item is found the pointer should be NULL for checking.
2013-09-10 08:27:13 +00:00
Campbell Barton 5dbe17cc12 add 2d convex hull utility function, BLI_convexhull_2d(), and python api mathutils.geometry.convex_hull_2d()
uses Andrew's monotone chain 2D convex hull algorithm.
2013-09-10 07:52:10 +00:00
Nathan Letwory b6a6074b56 Change window checks to desktop size instead of screen size.
This allows to open windows stretched over monitors. Saving
stretched layouts open correctly as well.

Renamed screensize_all to desktopsize to better convey meaning.
2013-09-10 06:32:32 +00:00
Nathan Letwory 8f3f110348 Add BLI_utildefines.h for __func__ (necessary for MSVC). 2013-09-10 05:57:54 +00:00
Campbell Barton c7f0344aae fix/workaround [#36694] Texture node groups tend to crash Blender a lot. 2013-09-10 03:18:43 +00:00
Campbell Barton 48c0c6ac02 fix [#36492] Keymap: Issue setting operator path properties 2013-09-10 02:49:33 +00:00
Campbell Barton 4ad9abcb68 fix [#36693] segfaults when split vertice of Bezier curve
own error in recent curve split patch.
2013-09-10 01:06:45 +00:00
Campbell Barton fc6c283271 code cleanup: use bool for imbuf allocation functions. 2013-09-10 01:00:03 +00:00
Campbell Barton ec388a2a15 fix [#36187] Crash loading large images
alloc size was larger then an int, use size_t for all image alloc sizes.
2013-09-10 00:53:39 +00:00
Brecht Van Lommel 1bbc432ead Fix #36356: faces not drawn with constructive modifier + dynamic paint, where it
overrides material colors with dynamic paint colors.
2013-09-09 20:46:43 +00:00