Thomas Dinges
18f2cd74ab
Cycles:
...
* Fix node tree identifier. MATERIAL > SHADER.
This fixes some of the node buttons not showing up after recent merge.
2011-09-17 15:27:52 +00:00
Brecht Van Lommel
b5d1f7a073
Cycles: missed these files in merge commit.
2011-09-17 14:38:56 +00:00
Brecht Van Lommel
f4a9215d7c
Cycles: svn merge -r39870:r40266 https://svn.blender.org/svnroot/bf-blender/trunk/blender
...
Merging the node changes required a lot of conflict resolution, fixed the
issues I could find but if you want stability you might want to wait a bit
before updating.
2011-09-17 13:28:40 +00:00
Campbell Barton
d87fcb0760
- fix for memory leak in findFreeNavPolyIndex()
...
- also correct own script for running cppcheck.
2011-09-16 14:02:44 +00:00
Brecht Van Lommel
66b1dfae89
Cycles: tweaks to properties and nodes
...
* Passes renamed to samples
* Camera lens radius renamed to aperature size/blades/rotation
* Glass and fresnel nodes input is now index of refraction
* Glossy and velvet fresnel socket removed
* Mix/add closure node renamed to mix/add shader node
* Blend weight node added for shader mixing weights
There is some version patching code for reading existing files, but it's not
perfect, so shaders may work a bit different.
2011-09-16 13:14:02 +00:00
Sergey Sharybin
c912af36ca
Fix #28663 : All "unit" properties show a value of 0 (on WinXP&MinGW&scons)
...
Initially problem was caused by updated version of mingw-runtime which
changed behavior of snprintf and vsnprintf so %lf isn't anymore valid
for doubles.
According to manpages, %f is a correct format for snprintf for doubles.
2011-09-16 10:03:08 +00:00
Campbell Barton
8ca82cec46
correction for my fix for [ #28668 ], would crash when there were no editbones.
2011-09-16 09:02:31 +00:00
Campbell Barton
2222f536f8
use replace 0 with NULL for pointers, set some functions static
...
also fixed own errors in recent static check commit.
2011-09-16 08:20:21 +00:00
Campbell Barton
41fa456506
replace macros with math lib functions
2011-09-16 06:56:50 +00:00
Campbell Barton
0abe1911d5
- fix for access past the buffer size (paint / sculpt used some 2d vecs as 3d)
...
- remove redundant NULL checks on old code where it would crash if the result was NULL later on.
- add some missing NULL checks.
2011-09-16 06:47:01 +00:00
Campbell Barton
862aababb3
- remove deprecated pose channel members
...
- change short -> char for flags that support it.
- add pose 'temp' pointer to use for outliner drawing (was using 'prev' and restoring which seems dodjy)
2011-09-16 02:42:50 +00:00
Campbell Barton
a6c15d6199
fix [ #28668 ] Crashes entering edit mode on Armature
2011-09-16 02:08:00 +00:00
Bastien Montagne
84966d864b
WeightVG: Made Edit and Proximity also use the new weightvg_update_vg MDeformWeight** parameter (to avoid another vgroup searching).
...
Also added to Proximity a check in case vgroup would have no vertices in it.
Plus a few minor edits...
2011-09-15 17:28:18 +00:00
Guillermo S. Romero
d7160d082f
SVN maintenance.
2011-09-15 16:37:36 +00:00
Campbell Barton
e2818f1b92
- include enum names and descriptions in sphinx generated documentation
...
- add descriptions for operator bl_options
2011-09-15 16:15:24 +00:00
Brecht Van Lommel
5f13b52c67
Cycles: fix preview render in 3d view not working on OS X.
2011-09-15 16:09:42 +00:00
Bastien Montagne
2f50579d9a
WeightVG utils, weightvg_update_vg func updates.
...
* Added an optional array of MDeformModifier pointers, to avoid another search based on defgrp_idx.
* Split out "add/remove verts from vgroup" functions, preparing their move to deform.c (if their current form is validated!).
2011-09-15 16:06:00 +00:00
Sergey Sharybin
41e5040e2f
Use static context trick for all platforms.
...
Should be safe until modifier stack is not threaded.
Solves issues with mingw and older glibc version (like used in release environment).
2011-09-15 15:29:40 +00:00
Bastien Montagne
f8af915b51
WeightVG Mix modifier: updated code to use defgrp_find_index, and make MDeformWeights be searched only once.
...
Also fixed a bug: when another set mode than "All Vertices" was used and resulting set of verts was empty, all vertices was used, instead of just returning org, unmodified data!
2011-09-15 14:48:50 +00:00
Sergey Sharybin
e45b8ab76e
- Whitespace fixes (was commiting from windows where text editor wasn't configured, pardon)
...
- Fixing typo in description of GP paint mode.
2011-09-15 13:14:46 +00:00
Campbell Barton
0d355a8a2c
replace BLI_strncpy with BLI_strncpy_utf8 where input isnt ensured to be valid.
...
also replace strcpy's which copy using "" with str[0]='\0'
2011-09-15 12:26:48 +00:00
Campbell Barton
9648c6016b
fix [ #28658 ] python can assign non utf8 and crash because of string lenth limits.
...
add BLI_strncpy_utf8() which which ensures there are no partially copied UTF8 characters, limited by the buffer size.
2011-09-15 11:49:36 +00:00
Sergey Sharybin
86d05b3144
Update build rules to deal with new gettext libraries.
2011-09-15 11:37:42 +00:00
Bastien Montagne
761c44cbc1
Fix [ #28654 ] Warp modifier does not support negative strength when Vertex Group is used.
...
The vg weight was multiplied by org strength (i.e. neg strength was always skiping all verts!), now multiplying it with abs value of strength.
2011-09-15 11:18:15 +00:00
Campbell Barton
264c63ef03
New C/Py api utility function PyC_Err_Format_Prefix() which raises an error with the existing error as a suffix.
...
Use this to raise errors when assigning a string property fails even though the value to assign *is* a string.
Before:
TypeError: bpy_struct: item.attr= val: Object.name expected a string type, not str
After:
TypeError: bpy_struct: item.attr= val: Object.name error assigning string, UnicodeEncodeError('utf-8' codec can't encode character '\udce9' in position 23: surrogates not allowed)
2011-09-15 10:43:55 +00:00
Campbell Barton
5ba213a424
move utf8 string.c functions into their own file, also add python tip for printing operators.
2011-09-15 08:07:42 +00:00
Campbell Barton
afbb207a99
minor edits to ascii draw function, unused var warning.
2011-09-14 02:45:44 +00:00
Campbell Barton
9b06435653
move ED_object_pose_armature --> object_pose_armature_get to so we dont get bad level calls in the weight paint branch.
2011-09-14 01:48:55 +00:00
Campbell Barton
dd2a2ec699
removed nodes from CMake's BLENDER_LINK_LIBS, rewrote find-pcre using own template.
2011-09-14 01:23:17 +00:00
Campbell Barton
21253def7c
- removed some duplicate library links from cmake (which were needed because of bad level calls)
...
- FindXML2 we had copied from another project was always running and not using cached value, rewrote based on template used for most of our other find modules which makes use of 'FindPackageHandleStandardArgs'
- mark statuc collada libs as advanced.
2011-09-14 01:02:57 +00:00
Campbell Barton
1741269d30
resolve bad level calls from blenkenel/ into editors/ & remove editors from the include path from CMake & SCons.
...
* ED_curve_editnurbs --> curve_editnurbs
* ED_sculpt_modifiers_changed --> object_sculpt_modifiers_changed
2011-09-14 00:37:27 +00:00
Antony Riakiotakis
8a977cbcc9
fix compilation for MinGW by substituting qsort_r with qsort. What aversion do MinGW guys have for including '_r' variants of functions anyway?
...
Warning: a clean build will be needed probably to account for recent merge changes, or link errors will occur.
2011-09-13 19:51:58 +00:00
Campbell Barton
ee32d36a59
fix [ #28635 ] Mirror Modifier - Clipping still active when modifier is disabled
2011-09-13 05:00:54 +00:00
Bastien Montagne
71f9397541
Fixes #28599 : Wrong re-assigning of layers in RenderLayer comp nodes when deleting a render layer.
...
Also added the check of comp nodetree of all scenes, as others might also use that scene in their compositing!
2011-09-12 17:27:02 +00:00
Campbell Barton
124d16aa14
correct bad maximum value, for wile-loop node, outside the range of a short.
2011-09-12 15:29:37 +00:00
Campbell Barton
97c78e25f0
fix for opencollada crash with r40164, missing NULL check.
2011-09-12 13:59:23 +00:00
Nathan Letwory
1dcf9c636c
Fix [ #28614 ] Collada Exporter does not export Ambient term
...
reported by Steiner Bernhard
ma->ambX is calculated only on a render, so instead of relying on those values compute them manually.
2011-09-12 13:20:24 +00:00
Campbell Barton
e16ba13251
use vector size and const args where possible (no functional change)
2011-09-12 13:00:24 +00:00
Thomas Dinges
c40492205b
Cycles:
...
* Remove RE_DO_RENDERED again, check for view_draw callback is sufficient.
2011-09-12 11:59:13 +00:00
Nathan Letwory
4a9a0ec3e4
Code shuffle so function has only one exit point.
2011-09-12 10:57:41 +00:00
Miika Hamalainen
46aede579e
Fix for bug #28332 : Smoke Simulation rendering artifacts.
...
Volume pre-caching altered shared data simultaneously in multiple threads, causing invalid scattering results when "Asymmetry" value was used. The view vector is now passed as a function argument.
2011-09-12 09:55:04 +00:00
Sergey Sharybin
b8bf0ee822
Fix #28613 : SEGFAULT: When setting Best-Quality on a Bump Map in GLSL viewport
...
Problem was caused by CRLF line ending instead of LF line ending.
Re-generate pu_shader_material to use LF line ending and made gpu codegen
treat \r as space character.
2011-09-12 09:47:28 +00:00
Campbell Barton
156e96762b
fix for changing font sizes with recent utf8 speedup
2011-09-12 09:12:34 +00:00
Bastien Montagne
d9894af950
Fixed "bug" #28611 : Subdiv value for icosphere should not be below 1.
2011-09-12 08:27:21 +00:00
Benoit Bolsee
5d695ed84a
Recast: attempt to fix compilation problem in Linux.
2011-09-12 07:38:00 +00:00
Campbell Barton
9a1f3c587e
- fix for mesh_get_mapped_verts_nors copying short normals to floats without scaling.
...
- BL_SkinDeformer also did this though for that case its not a problem because the normals are later accumulated anyway.
2011-09-12 04:29:35 +00:00
Campbell Barton
4bd0a2ba2d
replace VECCOPY -> copy_v3_v3, added copy_v*_v*_short too for typesafe copying, some parts of the code are copying float -> short normals without scaling. fix coming next.
2011-09-12 04:14:12 +00:00
Campbell Barton
471a86bf9c
cleanup for object color theme (no functional changes), could set the opengl color 2-3 times per object.
2011-09-12 01:43:20 +00:00
Campbell Barton
56460a0340
fix for passing NULL to strstr() in visualkey_can_use()
2011-09-12 00:13:49 +00:00
Campbell Barton
2827ee26e5
fix for ntreeGPUMaterialNodes(), using uninitialized exec pointer.
...
also commented some set-but-unused variables.
2011-09-12 00:00:21 +00:00