Commit Graph

47594 Commits

Author SHA1 Message Date
7735e56058 More work for [#31429] Curve menu polish.
* Curve Extrude and Duplicate from Toolbar also moves the points now, same as for Mesh and in alignment with the menu. 

* Fixed yet another tooltip.
2012-05-13 09:13:47 +00:00
9331b5e92f Projection onto face added for:
ED_vgroup_copy_by_nearest_face_single()
2012-05-13 08:16:41 +00:00
55e627d01e Removed sqr_dist_v3v3()
Now using existing: len_squared_v3v3()
2012-05-13 05:57:32 +00:00
4bee0a42dd Cleanup.
Basis changed/added for:
ED_vgroup_copy_by_nearest_face_single() 
Interpolation is still not working 100%
2012-05-13 05:33:25 +00:00
4215071ace Complete working function added:
ED_vgroup_copy_by_nearest_vertex_in_face_single()
2012-05-13 03:46:46 +00:00
90aa56a12a code cleanup: use static functions for transform operators 2012-05-12 23:18:14 +00:00
9004f9f998 add access to bevel weight modal operator (only available in the Shift+E edge menu currently) 2012-05-12 23:07:52 +00:00
71461298db patch [#31434] IDMaterials.pop/append() UI update from console
from Dan Eicher (dna)
2012-05-12 22:38:15 +00:00
c1570d9f49 code cleanup: missed some min/max use of float[3], also found case of DO_MIN/MAX re-reading same value from array 4 times when it can do once (use minf rather then MIN2, same for maxf) 2012-05-12 22:34:20 +00:00
145289ad95 code cleanup: minor improvements to float/vector usage. 2012-05-12 22:13:38 +00:00
a1c0834466 previous commit didnt work right, the flag is still needed, wrap access with functions so the NULL check is always done. 2012-05-12 21:38:35 +00:00
e7612ffd24 replace GP_PAINTFLAG_STROKEADDED with a NULL check, saves worrying about keeping the flag correct after undo. 2012-05-12 21:29:25 +00:00
613f464c51 fix [#31427] Crash when undoing until no point in grease pencil poly mode 2012-05-12 21:23:02 +00:00
b224cbe6b6 fix for own bad logic with polygon normal calculation, was reading one past the loop array (reported as bug #31431). 2012-05-12 21:01:26 +00:00
ed12a5d001 3D View:
* Changed Duplicate and Exture Operator fpr Curves/Surfaces to Duplicate/Extrude and Move, like for Mesh objects, for consistency. This is also consistent with Shift+D and E shortcut. 

This fixes [#31429] Curve menu polish.

* Fixed a wrong tooltip for metaball duplication.
2012-05-12 20:50:46 +00:00
9892736206 code cleanup: header cleanup and remove some duplicate defines. 2012-05-12 20:39:39 +00:00
cffaa42d3a style cleanup: blenkernel 2012-05-12 19:18:02 +00:00
7adeedfecc ED_vgroup_copy_by_nearest_face_single()
Math for interpolation of weights fixed to be consistent with reality... 
Still there is probably some indexing errors. 
Some vertices that should have blue weight, gets red. (on border faces)
2012-05-12 17:43:56 +00:00
d4258c4ad6 Fix [#31426] Unwrapping, First unwrap unwraps with LSCM, not with Angle Based
When operator method property is not set, the operator uses the one from current scene settings. We must update the operator property accordingly...

Also updated default startup.blend file, to match default AngleBased method (was on Conformal one).
2012-05-12 16:42:50 +00:00
85fd56a3a8 code cleanup: some style and use math defines, also small speedup for dynamicpaint, dont call acosf twice. 2012-05-12 16:42:12 +00:00
53ee7908d6 style cleanup: whitespace 2012-05-12 16:11:34 +00:00
bddc7dfc20 style cleanup: remaining BLI files. 2012-05-12 15:13:06 +00:00
2f2b15bbb2 style cleanup: whitespace, bli & makesdna 2012-05-12 15:02:10 +00:00
23c0d49a7c optimization for select similar
- use angle_normalized_v3v3() where both vectors are known to be normalized.
- remove needless radian to degrees conversions.
- move checks for customdata layers outside the inner loop (for bevel and crease).
2012-05-12 14:25:14 +00:00
821b231bd6 add bevel to select similar edges operator 2012-05-12 14:06:35 +00:00
a9f6e54384 style cleanup: mostly whitespace in rna 2012-05-12 11:01:29 +00:00
68e27b749e fix for building without libmv 2012-05-12 09:40:23 +00:00
07595ab2f5 reworded tooltip for Tripod Motion button; fixing spelling and making more clear 2012-05-12 04:31:03 +00:00
b7f4ea118c obs! not thinking straight. Reverting bug from cleanup. 2012-05-12 03:50:44 +00:00
66f4f3a9f5 some more cleanup 2012-05-12 03:32:13 +00:00
097ebb0a63 ED_vgroup_copy_by_nearest_face_single()
excluded 4th vertex in faces for better result.
2012-05-12 02:13:26 +00:00
8d7de250f3 Tiny bit of cleaning. 2012-05-12 01:04:12 +00:00
c40d445ef7 ED_vgroup_copy_by_nearest_face_single()
Is supposed to work, but something funny is going on. (logick error)
Function also needs optimization.
2012-05-12 00:37:45 +00:00
8925ed1420 Merged changes in the trunk up to revision 46557.
Conflicts resolved:
source/blender/blenkernel/intern/material.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/animation/anim_channels_defines.c
source/blender/makesrna/intern/rna_scene.c

Additional changes:
* Fix for recent changes of BKE_* function renaming.
* Fix for an "attempt to free NULL pointer" in BlenderStrokeRenderer::RenderStrokeRepBasic().
2012-05-11 22:48:41 +00:00
f95f3d9697 Incomplete ED_vgroup_copy_by_nearest_face_single() compiles. 2012-05-11 21:33:24 +00:00
736c0ca6e0 svn merge ^/trunk/blender -r46463:HEAD 2012-05-11 19:26:43 +00:00
a045ad9055 don't stat bookmark files on load, can make blender hang on slow networks (eg, the blender institutes gigabit connection)... or if the server is busy. 2012-05-11 17:41:38 +00:00
4359564d9b Merging r46495 through r46557 from trunk into soc-2011-tomato 2012-05-11 17:39:57 +00:00
1c0c2f4d0b Added verbosity command line argument. Currently used for libmv only.
Usage: ./blender --verbose <level>

Also fixed some crashes when not passing number to --threads argument
or not passing file format to -F argument.
2012-05-11 17:33:48 +00:00
Lukas Toenne
fe33fc8db3 Fix for UI layout alignment of fixed-size items (including those with width < min. width). Such layout items were ignoring the center and right alignment in layouts before. 2012-05-11 17:05:10 +00:00
c8da0d01d4 style cleanup: whitespace 2012-05-11 16:11:52 +00:00
713a517f40 add missing NULL of scene->ed 2012-05-11 14:27:55 +00:00
96cc298086 edits to recent sequencer api additions not to do scene lookups, the scene is already known. 2012-05-11 11:05:48 +00:00
b667f29a84 no need to clamp python values twice when assigning. 2012-05-11 10:25:12 +00:00
a2e225277f sequencer bug, was possible to add strips to negative channels, the channel clamping was ignored when calling RNA_property_int_set() when setting operator int/floats. 2012-05-11 10:20:35 +00:00
6ce6dfba16 - dont create scene.sequence_editor on read, means data-browser or autocomplete will allocate a sequencer.
... instead add scene.sequencer_editor_create / clear, these match id.animation_data_* functions.

- refactor for names, for scene level functions call them BKE_sequencer_*
2012-05-11 10:04:55 +00:00
Lukas Toenne
9d91bc38d3 A couple more changes to the file and image nodes to improve access to layers that don't follow Blender's rlayer.rpass naming scheme.
--- Changes to File Output node ---
* Flat layer names in EXR multilayer files.

 For a socket with name "AAA" the previous resulting EXR layer name would be "AAA.AAA", i.e. the render layer as well as render pass would use the socket name.

 Now the "render_layer.render_pass" scheme is ignored in multilayer files, socket names are directly written to EXR layers (EXR layer name is "AAA" in this example). If sockets should have a notion of "render layer" this can still be achieved by explicitly adding a separator, e.g. "AAA.BBB". When loading such layers into a Blender Image struct, the name is interpreted as a "render_layer.render_pass" again (although the image node does not care about it, see below).

* Socket sub-paths (for singlelayer) or layer names (for multilayer) are stored in dedicated string variables in the socket storage data. This way the RNA can define precise string subtypes (PROP_FILEPATH) and length. The file/layer slots are defined as separate structs with own name properties in the RNA as well, so they can be used nicely with the list template.

* Ensure unique socket paths/layer names to prevent overwriting of files and layers respectively.

--- Changes to Image node ---
* Loading multilayer OpenEXR files has improved layer name splitting into render layer + render pass names now. This properly supports arbitrary EXR layer names now.
  Example:

 OpenEXR layer name:   AAA.BBB.CCC

 is split into

 Render layer name:    AAA.BBB
 Render pass name:     CCC

 If the layer name has no '.' separators the render layer name is empty.

* Image node ignores the selected render layer in the image user data. Instead all existing layers are displayed at the same time by combining the render layer names with render pass names again, to reconstruct the original EXR layer name. This avoids the problem that render layers with empty name are not selectetable in the dropdown and allows using all image layers at the same time without duplicating the node.
2012-05-11 08:06:01 +00:00
ce17c35240 style cleanup: mainly sculpt/whitespace 2012-05-11 08:05:47 +00:00
dabc22826d Compilation error fix: abort() wasn't declared in BKE_ccg.h before 2012-05-11 05:27:23 +00:00
e345a232d8 Tomato: fixed invalid float suffix. 2012-05-11 05:21:04 +00:00