Jason Hays
1b5d16f1bf
I made multitude of fixes based on the comments provided online:
...
Removed the drawSelectedVerts and added drawSelectedVertices, which uses dm->foreachMappedVert.
In calc_weightpaint_vert_color():
Made the weight paint color black and return instead of input=-1
Made the pose bone selection normal when multi-paint is inactive.
Name fix for functions using mv instead of mvert.
Used vector functions provided by the math lib.
Changed some MEM_callocN references to be stacks.
Changed dm_deform_clear to use ob->derivedDeform primarily
Made the variable "float **changes" into "float (*changes)[2]"
Used CTX_data_active_object() in place of CTX_data_pointer_get_type()
Added the invert selection hotkey "Ctrl+I" to weight paint's vertex mask.
2011-09-18 01:09:18 +00:00
Campbell Barton
101937e2dd
replace rna_update_active_object with NC_GEOM|ND_DATA notifier (as pointed out by Matt Ebb), also some whitespace edits to match trunk.
2011-09-15 07:06:45 +00:00
Campbell Barton
3585808bdb
fix for a bug painting on selected verts, also fix an error in my own recent commit.
2011-09-14 12:44:21 +00:00
Campbell Barton
a31869f267
some picky rna/variable renaming:
...
Mesh.wp_vert_sel --> use_paint_mask_vertex
2011-09-14 08:45:12 +00:00
Campbell Barton
df433c7a1d
- move vgroup lock buttons on the panel into the vgroup specials menu.
...
- merge object.vertex_group_lock_all / object.vertex_group_invert_locks / "object.vertex_group_unlock_all into one operator.
- change lock button from a checkbox to a lock icon.
2011-09-14 08:21:21 +00:00
Campbell Barton
86777f46e1
- use a flag define for bDeformGroup->flag rather than setting TRUE/FALSE
...
- rename RNA bDeformGroup.flag to "lock_weight"
2011-09-14 07:07:17 +00:00
Campbell Barton
718f78d548
remove count_selected_defgroups() function and make get_selected_defgroups() return the total selected items.
...
also some variable renameing, no functional changes.
2011-09-14 05:56:25 +00:00
Campbell Barton
4c99d83b56
another cleanup pass, quiet all warnings for GCC
...
- comment unused funcs/vars.
- replace some allocs with stack variables.
- use BLI_math functions to replace in-line vector math.
2011-09-14 05:25:43 +00:00
Campbell Barton
98961c9f19
initial cleanup for weight paint branch
...
- move get_selected_defgroups & count_selected_defgroups into blenkernel
- split calc_weightpaint_vert_color() logic so its more obvious whats default and multipaint behavior
2011-09-14 02:04:26 +00:00
Campbell Barton
c3a718702f
svn merge -r40195:40197 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-14 01:54:04 +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
ac51152ec5
svn merge -r40179:40195 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-14 01:32:59 +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
Jason Hays
272bdce84d
Re-added the interface template for vertex groups' checkboxes (they were cut out in a merge conflict)
2011-09-13 20:28:43 +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
e67b2ee6eb
quiet compiler warnings
2011-09-13 14:38:05 +00:00
Campbell Barton
7d02e66256
svn merge -r40000:40179 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-13 10:05:30 +00:00
Campbell Barton
92089e3c4d
svn merge -r39900:40000 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-13 09:07:20 +00:00
Campbell Barton
9c4165fde0
svn merge -r39800:39900 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-13 07:19:36 +00:00
Campbell Barton
b310a76a1b
svn merge -r39558:39800 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-13 06:39:17 +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
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
Peter Schlaile
8f9fa6a400
== Sequencer ==
...
Fixed silly bug, that activated proxies at the wrong time.
2011-09-11 21:46:24 +00:00
Bastien Montagne
16406dce64
Found other problems similar to bug #28619 in other primitive_add ops… Will continue to chek!
2011-09-11 15:33:33 +00:00
Bastien Montagne
f6822aa3de
Fixed bug #28619 : values of X/Y grid size were allowed to be below 3, when adding a grid primitive.
2011-09-11 15:26:46 +00:00
Sergey Sharybin
0e3856d506
Fixes for Win+SCons and disable recastnavigationif game engine is disabled in SCons
2011-09-11 15:17:54 +00:00
Benoit Bolsee
b988a2abf8
Recast: fix bad level calls, Recast compiled out if BGE not enabled. SCons updated but not tested.
2011-09-11 14:13:04 +00:00
Campbell Barton
3d3f6b1ddc
fix for 'blender -E' crashing.
2011-09-11 13:46:58 +00:00
Joerg Mueller
ab2fc6f106
Audio:
...
* Fix for high quality upsampling which was wrong.
* Fix for doppler effects which were calculated wrong for scenes.
* Improved animation evaluation at the beginning and end of a scene.
2011-09-11 12:24:11 +00:00
Campbell Barton
5f62f5c6fe
move maxseq define into DNA.
2011-09-11 10:35:26 +00:00
Campbell Barton
64aa651b1b
speedup for editmesh drawing.
...
- avoid needless context switching quad/tri, flat/smooth.
- dont call glNormal3vf() lighting is disabled.
gives ~2x speedup with a subdivided cube, but thats probably the best case, quad/tri smooth/flat mix will slow down a bit.
2011-09-11 10:23:26 +00:00
Thomas Dinges
933a19c997
Game Engine:
...
Fixed some more abbreviations in the UI.
2011-09-11 10:00:43 +00:00
Dalai Felinto
ff04beb3e4
partial fix for blenderplayer linking problems (decast retour)
...
This fix the problem of linking the extern components for the KX module.
The remaining linking issues are related to actual bad level access so the fix is a bit more complex.
Remaining linking issues (osx cmake gcc)
###########
Undefined symbols:
"_buildNavMeshDataByDerivedMesh", referenced from:
KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
_applyModifier in libbf_modifiers.a(MOD_navmesh.cpp.o)
"_polyIsConvex", referenced from:
_applyModifier in libbf_modifiers.a(MOD_navmesh.cpp.o)
"_polyNumVerts", referenced from:
KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
"_polyFindVertex", referenced from:
KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
KX_NavMeshObject::BuildVertIndArrays(float*&, int&, unsigned short*&, int&, unsigned short*&, float*&, int&, unsigned short*&, int&, int&)in libge_logic_ketsji.a(KX_NavMeshObject.cpp.o)
############
2011-09-11 08:21:26 +00:00