Commit Graph

49420 Commits

Author SHA1 Message Date
Campbell Barton
43e297c0c0 minor cleanup for weightpaint fill
- SCE_SELECT_FACE and SCE_SELECT_VERTEX are mutually exclusive, use a macro to get a single value from them.
- was allocating an array for no reason.
2011-11-02 00:51:21 +00:00
Nicholas Bishop
b60f60453b Function convertViewVec() contained some piece of code duplicated four
times, pulled out into separate function and cleaned up a bit. Should
be no functional changes.

Review link: http://codereview.appspot.com/5308073/
2011-11-02 00:17:37 +00:00
Campbell Barton
9a52069524 ctrl+click mesh extrude wasnt re-tesselating the mesh 2011-11-01 23:38:34 +00:00
Campbell Barton
9be43762bc svn merge -r41431:41453 ^/trunk/blender 2011-11-01 23:24:51 +00:00
Campbell Barton
d7de4d28dd quiet some warnings. 2011-11-01 22:51:10 +00:00
Thomas Dinges
27ffb5556a Bugfix for [#29055] node editor / texture node / scale node
* Node Vector sockets, don't have a PROP_FACTOR any longer.
2011-11-01 22:21:21 +00:00
Thomas Dinges
32b34d631a Space types:
* Some cleanup, removed references to already deleted *_header.c files.
* Marked SpaceScript as deprecated and removed header. Will keep space for now though, as some script operators are there and Campbell might want to re-use the space later.
2011-11-01 20:14:58 +00:00
Thomas Dinges
ea2f7c907c == Removal of SpaceSound ==
* Removed old, unused Space Sound space
* Removed data struct and Theme settings
* Old files with an open Audio window will be loaded as Info Space
2011-11-01 19:48:45 +00:00
Andrea Weikert
785de4cbfc == Cleanup of SpaceImasel ==
* removed struct for SpaceType and all usages
* SPACE_IMASEL in enum nees to be kept to identify it in old files
* it is replaces with SPACE_EMPTY on load, which is overridden by SPACE_INFO which has same struct members
* also removed theme settings
2011-11-01 18:27:09 +00:00
Sergey Sharybin
c70cde6f94 Fix #29124: Modifying mesh with mirror and solidify modifiers crashes blender
It is corrected fix for #29089 (svn rev 41409). That fix wasn't correct because
it used to set face number from derived mesh on which solidify is applying which
isn't correct for case of constructive modifiers applied on base mesh before
solidify modifier.

Actually nothing special should be performed here to set needed original index
because of ORIGINDEX layer is getting copyed automatically when when copying faces.
2011-11-01 17:43:30 +00:00
Andrew Wiggin
2241eaddf5 Reverting r41409 (broken fix for #29089)
r41409 can cause a crash if you delete a face of a mesh that has subsurf & solidify modifiers active
2011-11-01 17:06:10 +00:00
Brecht Van Lommel
d55298ee3c Fix #29109: bpy.ops.render.render() with scene parameter missed compositing,
previous bugfix needed a bit more refining.
2011-11-01 14:51:44 +00:00
Campbell Barton
85e0609c54 use char for BMHeader type and flag (saves 2 bytes per edge/loop/vertex/face)
also found mouse_mesh_shortest_path was casting edit selecton to the wrong type.
2011-11-01 14:36:23 +00:00
Campbell Barton
a1e95e2e18 replace as many uses of BM_Get/SetIndex as possible with tagging with a temp flag, some uses need index values to be set, so this will need more effort to replace (crazy space and solidify for eg). 2011-11-01 12:51:38 +00:00
Brecht Van Lommel
4b48a5a497 Fix #29101: 2D Tilt on Bezier Curve Bug?
Changing tilt for 2D curves doesn't really hurt, just makes things not so
clear tosee what's going on because you're changing value which isn't used
at all for 2D curves. Disallwo to run TRANSFORM_OT_tilt operator for 2D curves.

Also made a correct fix for incorrect shortcut for tilt in 3D viewport toolbar,
it was really confusing to have almost the same operators (TRANSFORM_OT_tilt and
TRANSFORM_OT_transform with mode=tilt) in keymap. Better to use tilt operator
in toolbar.
2011-11-01 11:00:08 +00:00
Tamito Kajiyama
c72376fc04 Sorted modifier menu items in the alphabetical order in the Parameter Editor mode. 2011-11-01 09:53:30 +00:00
Campbell Barton
63eb94e504 rename BM_FLIPPED --> BM_TMP_TAG to use as a temp tag anywhere. 2011-11-01 09:48:20 +00:00
Tamito Kajiyama
ac6bdfb653 Added two stroke geometry modifiers: Parameterization and Guiding Lines. 2011-11-01 09:47:41 +00:00
Campbell Barton
dd8a575c22 correct header, for some reason gcc doesnt warn about this 2011-11-01 09:47:19 +00:00
Campbell Barton
c529631c1e uncommented particle mirror, tested and it works fine. 2011-11-01 09:21:23 +00:00
Campbell Barton
9aa901cccc svn merge -r41422:41431 ^/trunk/blender 2011-11-01 09:05:38 +00:00
Campbell Barton
2ad80bf3bb vertex group mirror
- now works in vertex select + weight paint mode.
- added option not to mirror all vertex groups.
2011-11-01 08:11:55 +00:00
Campbell Barton
bcdcbb65c1 macro to check if an object type supports vgroups 2011-11-01 06:45:36 +00:00
Campbell Barton
e3f03d72b6 added path traversal flag - BPATH_TRAVERSE_SKIP_MULTIFILE,
so path manipulation functions dont run multiple times on the same path in the case of sequence strips where the one directory is used as the base for many images.
2011-11-01 06:26:55 +00:00
Campbell Barton
b6e445a61f BMesh todo - mirror vertex groups back. 2011-11-01 05:43:35 +00:00
Campbell Barton
d4f1275585 subdivide smooth now works as in trunk.
- r35832 joeedh removed this with comment "removed the "smoothness" parameter (which never worked, anyway, even in trunk)", not sure I agree here... just because its not perfect doesnt mean its not working, anyway, to support in bmesh at the same level as trunk is not much effort.
- calculating the coordinates was being done on every shape key, I can see this could be useful to subdiv worked on all shape keys BUT the existing code didnt do this properly, for it to work right the normals would need to be updated for each shape key too when calculating smoothing, so now just calculate the new subdivided location and apply the difference to all other shape keys.
2011-11-01 05:17:46 +00:00
Campbell Barton
8cfef06d23 enable bmesh subdivide smooth, this isn't working quite right yet.
also remove some invalid BMESH_TODO's
2011-11-01 04:31:25 +00:00
Campbell Barton
f3f3a42566 use math functions for mesh subdivide smooth (easier to follow for bmesh, no functional changes). 2011-11-01 04:19:21 +00:00
Campbell Barton
b03e78e1af minor cleanup edits 2011-11-01 03:02:33 +00:00
Campbell Barton
e08c4a00d2 svn merge -r41371:41420 ^/trunk/blender 2011-11-01 02:01:09 +00:00
Brecht Van Lommel
4e0d8ccf96 Fix #29084: material/texture nodes crash introduced in 2.60, execdata is being
lazely created but this wasn't done in a thread safe way.
2011-10-31 17:00:59 +00:00
Brecht Van Lommel
bdb279ec5b Fix crash in texture nodes, when no derivatives available, other nodes already
did this check.
2011-10-31 16:44:24 +00:00
Brecht Van Lommel
56421d869d Fix: selecting with z-buffer hiding did not work when graphics card settings
enabled antialiasing, overriding application settings.

The fix for this got lost when the FSAA option was added and later disabled
again. Added it back now, and also disable AA for UI widgets since it makes
them look too blurry, they already do their own AA.
2011-10-31 14:08:14 +00:00
Miika Hamalainen
cd338a4130 Merge with trunk r41411 2011-10-31 13:18:14 +00:00
Miika Hamalainen
0a37e6ab97 Dynamic Paint:
* Redesigned alpha blending and paint drying algorithms. Now it gives much better results when using low brush alpha or when surface has initial color set.
* Fix: "Slow" dissolve/dry was scaled incorrect when using substeps. Also adjusted time to better match non-"slow" setting.
* Fixed possible issues when using image textured brush.
* Fix: particle brush panel was no longer visible since last commit.
* Adjusted default surface values.
* Some more code cleanup.
2011-10-31 13:01:06 +00:00
Campbell Barton
2ceeaf9721 fix [#29089] Faces created for "rims" by solidify modifier have incorrect visibility 2011-10-31 07:17:35 +00:00
Campbell Barton
797d2bbd88 use_verify option to defvert_sync_mapped and defvert_sync was flipped, also minor edits to defvert_verify_index() - no functional change. 2011-10-31 06:13:20 +00:00
Campbell Barton
1a2188af41 fix [#29090] Vertex paint: in mask mode, select all (hotkey "A") does not work 2011-10-31 03:55:01 +00:00
Campbell Barton
9905094f5d fix own error r41191 getting id property string lengths. 2011-10-31 01:50:04 +00:00
Andrew Wiggin
12ace958f5 Miscellaneous warning fixes (mostly unused local vars) and trivial cleanups 2011-10-31 00:44:12 +00:00
Andrew Wiggin
9c5a620e4d Fix problems with setting (and respecting) correct visibility of rim faces created by solidify modifier 2011-10-31 00:34:19 +00:00
Andrew Wiggin
f1dcd1f157 Small optimization in mesh-to-bmesh convert (avoid a bunch of alloc, free, realloc of loop customdata) 2011-10-31 00:28:52 +00:00
Campbell Barton
dc1b3d88b8 fix [#29098] File save dialog cannot handle extra periods in file name 2011-10-31 00:23:42 +00:00
Andrew Wiggin
83cef039af Fix a minor bug with incorrect ordering of arguments to customdata api 2011-10-31 00:10:51 +00:00
Thomas Dinges
9c115ccc40 Blender Conference Feature Request by Jonathan:
* Made "V3D_BGPIC_EXPANDED" true per default, so when you add a new background image, you don't have to expand the UI to select the image.
2011-10-30 23:01:24 +00:00
Tamito Kajiyama
12f2c06d34 Fixed a crash due to invalid pointers to temporary scenes for stroke rendering.
Freestyle generates a temporary scene containing a number of stroke meshes to
achieve stroke rendering using the Blender internal renderer.  This temporary
scene may appear in the outliner and undergo user interaction when the stroke
rendering takes a long time.  The crash was due to the deletion of the scene
without taking care of references to the scene from screens, one of which was
the outliner.
2011-10-30 22:53:24 +00:00
Tamito Kajiyama
e287e9d0c4 Merged changes in the trunk up to revision 41387. 2011-10-30 21:38:01 +00:00
Jens Verwiebe
6d5cf68aaf WIN32, fix a crash when blender is executed in background mode, patch by kjym3 2011-10-30 20:47:03 +00:00
Tamito Kajiyama
f0acdcf135 Fix for stroke rendering instability with stroke geometry shaders.
* Stroke::Resample(int nPoints) was not properly working when a wrong
value was returned from Stroke::getLength2D(), resulting in repeated
warning messages "Warning: incorrect points number" during stroke
rendering.  The main cause was that stroke geometry shaders did not
update the two-dimensional (2D) length (also referred to as curvilinear
abscissa) after they modified the 2D points of stroke vertices.  Now
all stroke geometry shaders make explicit calls for Stroke::UpdateLength()
that has been introduced for recomputing the 2D length.  Many thanks to
Josef who reported the problem together with sample .blend files for
reproducing the issue.

* Missing Python wrapper of Stroke::getLength2D() was added.
2011-10-30 16:00:35 +00:00
Sergey Sharybin
61a2dfe89d Change default values for mix node.
Discussed with plenty of artists on De Balie and this values makes much more sense.
2011-10-30 14:53:26 +00:00