Campbell Barton [Tue, 22 May 2012 16:09:31 +0000 (16:09 +0000)]
style cleanup: relating to skin modifier
Campbell Barton [Tue, 22 May 2012 15:57:42 +0000 (15:57 +0000)]
style cleanu: skin modifier
Nicholas Bishop [Tue, 22 May 2012 15:55:02 +0000 (15:55 +0000)]
Fix for compiling with player after skin modifier commits.
Removed the bad_level_call_stubs for BLI_heap functions; player is
being linked with blenlib, so this gives multiple-definition linker
errors.
Ton Roosendaal [Tue, 22 May 2012 15:50:13 +0000 (15:50 +0000)]
Long old UI annoyance:
The up/down triangle icon for menus was not drawing when a menu had
an icon; even though space was reserved there. Note: this can only
work now with removing the ugly "down triangle" icon from buttons like
next to the Material list box (button pops up menu with tools).
Looks nicer this way anyway.
Campbell Barton [Tue, 22 May 2012 15:49:41 +0000 (15:49 +0000)]
use faces longest edge when orienting the manipulator to the active face
also small speedup for finding the longest edge
Nicholas Bishop [Tue, 22 May 2012 15:30:14 +0000 (15:30 +0000)]
Add vertex skin radii scaling as a transform operator.
Add a new transform operator, "Skin Resize", which scales the X and Y
axes of the radius field in MVertSkin. It's bound to CTRL+AKEY.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:30:05 +0000 (15:30 +0000)]
Clear skin root flag on new vertices created by extruding.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:29:57 +0000 (15:29 +0000)]
Add operator to extract armature and vertex groups from skin.
* The operator creates bones for each input edge (does not subdivide
them like the skin operator does), adds a fake root bone for skin
roots with multiple children.
* The operator adds vertex weight groups to the original mesh.
* Make copy_object_transform() public, used to match the armature
object to the mesh object.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:29:44 +0000 (15:29 +0000)]
Add skin vertex operators.
* Add operator to mark selected vertices as skin roots.
* Add operator to mark/clear selected vertices as loose.
* Add operator to equalize skin radii.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:29:37 +0000 (15:29 +0000)]
Ensure skin nodes get created when adding modifier.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:29:27 +0000 (15:29 +0000)]
Draw skin vertex roots in edit mode.
Roots are drawn with a view-oriented dashed red circle around the
vertex location. The circle's radius is the average if the skin
vertex's X and Y radii.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:29:15 +0000 (15:29 +0000)]
Add new theme-able color, TH_SKIN_ROOT.
Bumped file version from 263.5 to 263.6 to ensure the default
TH_SKIN_ROOT color gets set.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:29:01 +0000 (15:29 +0000)]
Add skin modifier: DNA, RNA, UI, and MOD_skin.c implementation.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Implementation based in part off the paper "B-Mesh: A Fast Modeling
System for Base Meshes of 3D Articulated Shapes" (Zhongping Ji,
Ligang Liu, Yigang Wang)
Note that to avoid confusion with Blender's BMesh data structure,
this tool is renamed as the Skin modifier.
The B-Mesh paper is current available here:
http://www.math.zju.edu.cn/ligangliu/CAGD/Projects/BMesh/
The main missing features in this code compared to the paper are:
* No mesh evolution. The paper suggests iteratively subsurfing the
skin output and adapting the output to better conform with the
spheres of influence surrounding each vertex.
* No mesh fairing. The paper suggests re-aligning output edges to
follow principal mesh curvatures.
* No auxiliary balls. These would serve to influence mesh
evolution, which as noted above is not implemented.
The code also adds some features not present in the paper:
* Loops in the input edge graph.
* Concave surfaces around branch nodes. The paper does not discuss
how to handle non-convex regions; this code adds a number of
cleanup operations to handle many (though not all) of these
cases.
Nicholas Bishop [Tue, 22 May 2012 15:28:44 +0000 (15:28 +0000)]
Add Mesh equivalent to BM_edge_other_vert().
/* Return the index of the edge vert that is not equal to 'v'. If
* neither edge vertex is equal to 'v', returns -1. */
int BKE_mesh_edge_other_vert(const struct MEdge *e, int v);
Nicholas Bishop [Tue, 22 May 2012 15:19:33 +0000 (15:19 +0000)]
Add new BMesh length query functions.
BMEdge *BM_face_find_shortest_edge(BMFace *f);
BMEdge *BM_face_find_longest_edge(BMFace *f);
Reviewed by Campbell Barton.
Dalai Felinto [Tue, 22 May 2012 15:19:19 +0000 (15:19 +0000)]
fix for bmesh api example
worth noticing is that the example in bpy.types.Mesh is wrong too (Mesh type does not have an uv element)
but I would prefer someone more familiar with bmesh to take a look at those
Nicholas Bishop [Tue, 22 May 2012 15:19:13 +0000 (15:19 +0000)]
Add skin modifier icon created by Julio Iglesias.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Nicholas Bishop [Tue, 22 May 2012 15:18:43 +0000 (15:18 +0000)]
Add MVertSkin DNA/RNA and customdata (CD_MVERT_SKIN).
The MVertSkin currently just stores local skin radii and skin
flags (MVertSkinFlag).
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
Reviewed by Campbell Barton.
Lukas Toenne [Tue, 22 May 2012 14:13:33 +0000 (14:13 +0000)]
A number of new features for the node editor in general and the Frame node in particular.
For an detailed user-level description of new features see the following blogpost:
http://code.blender.org/index.php/2012/05/node-editing-tweaks/
TL;DR:
* Frame node gets more usable bounding-box behavior
* Node resizing has helpful mouse cursor indicators and works on all borders
* Node selection/active colors are themeable independently
* Customizable background colors for nodes (useful for frames visual
distinction).
Campbell Barton [Tue, 22 May 2012 13:59:58 +0000 (13:59 +0000)]
code cleanup: key/interpolation
Campbell Barton [Tue, 22 May 2012 13:43:36 +0000 (13:43 +0000)]
expose absolute shape keyblock interpolation in the ui
Campbell Barton [Tue, 22 May 2012 13:20:01 +0000 (13:20 +0000)]
style cleanup: mmap_win32
Antony Riakiotakis [Tue, 22 May 2012 12:30:37 +0000 (12:30 +0000)]
Disable building of CUDA 1.3 kernels for cycles for win32 cmake and mingw32 scons. They were already disabled for scons MSVC 32bit.
Andrew Hale [Tue, 22 May 2012 12:03:56 +0000 (12:03 +0000)]
Fix for customdata layer copying. Issue was caused by mixing up of destination and source in copy function. Also fixed an error in Py API, check to see if layers were different should be check to see if they're the same.
Campbell Barton [Tue, 22 May 2012 10:10:14 +0000 (10:10 +0000)]
fix for error in last commit and minor speedup to looping over edges.
Jeroen Bakker [Tue, 22 May 2012 09:54:08 +0000 (09:54 +0000)]
* Composite result is updated when editing (preview were already
calculated, now the final result is also updated in the image space
* default texture size when not connected to any resolution depended
operation defaults to render size
Campbell Barton [Tue, 22 May 2012 09:53:33 +0000 (09:53 +0000)]
solidify modifier - remove a loop on all edges.
Sergey Sharybin [Tue, 22 May 2012 09:15:05 +0000 (09:15 +0000)]
Fix imbuf users leak in MovieClip tiles node
Leak was caused by not calling IMB_freeImBuf for result of BKE_movieclip_get_ibuf
Sergey Sharybin [Tue, 22 May 2012 09:15:01 +0000 (09:15 +0000)]
Fix for movie distoriton node in tiles
Now it works in the same way as non-tiles node in cases when image's
resolution is not equal to resolution used for calibration.
Also add some additional checks for distortion cache, so now it should
be updating properly when camera intrinsics are changing.
Potentially added support of overscan, but currently all needed computation
is commented out.
Campbell Barton [Tue, 22 May 2012 09:00:34 +0000 (09:00 +0000)]
fix for regression in curve modifier (own fault)
Bastien Montagne [Tue, 22 May 2012 08:36:06 +0000 (08:36 +0000)]
I18n fixes, mainly for (cycles) nodes (i.e. node template in Buttons window).
Note: the problem of sockets translation remains (for all node types), currently they are unavailable from RNA, hence not detected by i18n tools, so only solution is to add N_() in all node sockets templates… yuck! Really have to fix this.
Campbell Barton [Tue, 22 May 2012 08:24:52 +0000 (08:24 +0000)]
fix [#31530] Project paint with Clipping border gives opaque background
draw clipping box alpha 0 so reprojection and rendering show the background as alpha 0.
Sergey Sharybin [Tue, 22 May 2012 07:46:14 +0000 (07:46 +0000)]
Fix #31522: wrong ID user count on custom bone shape object after duplicate
Campbell Barton [Tue, 22 May 2012 07:26:45 +0000 (07:26 +0000)]
fix [#31489] EdgeSplit modifier prevents All Edge to be work correctly since 2.63
bmesh regression where the edge-draw flag was cleared when bmesh modifiers were used.
Campbell Barton [Tue, 22 May 2012 07:07:25 +0000 (07:07 +0000)]
remove unused enums (these are defined and used elsewhere)
Sergey Sharybin [Tue, 22 May 2012 07:06:48 +0000 (07:06 +0000)]
Fix #31500: Displacement Baking from Multires doesn't work
Issue was caused by wrong calculation of grid coordinates when switching
from low resolution mesh to high resolution mesh. Somehow was affected only
for face U or V equals to 1.0f.
Checked fix using all test files used during initial implementation of
multires baker and tested sample file from bug/ Seems everything is OK.
Campbell Barton [Tue, 22 May 2012 06:29:46 +0000 (06:29 +0000)]
style cleanup: brace placement.
Nicholas Bishop [Mon, 21 May 2012 23:32:46 +0000 (23:32 +0000)]
Add input sample averaging to PaintStroke.
Averages input samples to make the brush stroke smoother. Only mouse
location is averaged right now, not pressure/tilt/etc.
The DNA is in struct Paint.num_input_samples, RNA is
Paint.input_samples. In combination with PaintStroke usage this change
applies to sculpt, vpaint, and wpaint.
The range of useful values varies quite a bit depending on input
device; mouse needs higher values to match tablet pen, so set max
samples pretty high (64).
Release note section:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Sculpting#Input_Stroke_Averaging
Monique Dewanchand [Mon, 21 May 2012 20:36:02 +0000 (20:36 +0000)]
fix for
[#31502] Defocus max radius help tekst
Dan Eicher [Mon, 21 May 2012 20:28:54 +0000 (20:28 +0000)]
Missing RNA_def_property_update functions for RenderSettings bake properties
Jeroen Bakker [Mon, 21 May 2012 20:21:32 +0000 (20:21 +0000)]
Fix for [#31413] Code review testing: Regarding chunksize, could the
tooltip be made more clear
Jeroen Bakker [Mon, 21 May 2012 20:10:21 +0000 (20:10 +0000)]
UI mafia fix thanks to venomgfx for reporting
* Color correction node
Monique Dewanchand [Mon, 21 May 2012 19:58:23 +0000 (19:58 +0000)]
Fix for
[#31408] Code review testing: Button labels are invisible in many nodes
Jeroen Bakker [Mon, 21 May 2012 19:31:29 +0000 (19:31 +0000)]
Fix for [#31418] Code review: OpenCL initialization
* Moved OpenCL initialization to first use
* cleaned up build files
* display some debug lines only when debugging is enabled.
Jeroen Bakker [Mon, 21 May 2012 18:47:55 +0000 (18:47 +0000)]
[#31410] Code review testing: The color correction node in particular is
quite problematic in button layout
* Added first column with labels
* increased max size of node
* moved the start/end midtones to the bottom of the node
Mitchell Stokes [Mon, 21 May 2012 18:35:31 +0000 (18:35 +0000)]
Fix for [#31367] render.drawLine not 2D filter aware:
The lines from render.drawLine() are now drawn before motion blur and 2D Filters.
Bastien Montagne [Mon, 21 May 2012 18:06:20 +0000 (18:06 +0000)]
A few minor UI message fixes...
Campbell Barton [Mon, 21 May 2012 16:52:04 +0000 (16:52 +0000)]
change name length from 32 to 64, perhaps we should have some constant here bpy.constants.NAME_MAX ? - but this hardly ever changes.
also hide allow overlap option for adding sequence strips, this was only intended for api use
Jeroen Bakker [Mon, 21 May 2012 16:05:45 +0000 (16:05 +0000)]
fix for [#31543] Nodes use array past bounds
Jeroen Bakker [Mon, 21 May 2012 14:05:47 +0000 (14:05 +0000)]
* Bokeh Image angle now has rnge from -720 to +720 degrees
Brecht Van Lommel [Mon, 21 May 2012 12:52:28 +0000 (12:52 +0000)]
Cycles: add Object Info node, with outputs object location, object/material
pass index, and a random number unique to the instance of the object.
This can be useful to give some variation to a single material assigned to
multiple instances, either manually controlled through the object index, based
on the object location, or randomized for each instance.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Object_Info
Campbell Barton [Mon, 21 May 2012 12:30:06 +0000 (12:30 +0000)]
debugging check for bmesh (commented since its very slow), but useful for debugging some scripts.
Jeroen Bakker [Mon, 21 May 2012 10:20:30 +0000 (10:20 +0000)]
Added switch in dilate/erode between old (Step) and new (Distance)
algorithm
Connected the Glare Fog Flow to use Fast Gaussian in stead of Bokeh blur
Campbell Barton [Mon, 21 May 2012 10:13:43 +0000 (10:13 +0000)]
fix for fix - possible on second loop to use freed memory still.
Campbell Barton [Mon, 21 May 2012 10:11:51 +0000 (10:11 +0000)]
fix for unlikely but possible use of uninitialized pointers.
Campbell Barton [Mon, 21 May 2012 09:00:35 +0000 (09:00 +0000)]
code cleanup: remove some old comments
Campbell Barton [Mon, 21 May 2012 08:24:03 +0000 (08:24 +0000)]
fix for minor annoyance when an operator is called by another - dont add blend file to recent history.
this way demo-mode addon doesnt clobber the recent history with demo files its operator loads.
Campbell Barton [Mon, 21 May 2012 08:10:37 +0000 (08:10 +0000)]
Quiet null pointer free warning/error.
Campbell Barton [Mon, 21 May 2012 07:00:23 +0000 (07:00 +0000)]
py api integration: __import__(... , level=0)
default changed to work with python3.3
Campbell Barton [Mon, 21 May 2012 06:44:46 +0000 (06:44 +0000)]
fix for error pointed out by Nicholas Bishop, BM_edge_face_pair & BM_edge_loop_pair returned TRUE for single face user edges.
Campbell Barton [Mon, 21 May 2012 06:33:45 +0000 (06:33 +0000)]
code cleanup:
- remove duplicate includes
- blender builds with -Werror in C++ for fluids/smoke
Joshua Leung [Mon, 21 May 2012 06:33:32 +0000 (06:33 +0000)]
readfile.c Style cleanups Part 2 - More whitespace + replaced most of the while
loops
Peter Schlaile [Sun, 20 May 2012 21:24:08 +0000 (21:24 +0000)]
== Compositor ==
This fixes occasional crashes on uninitialized memory, when we open a blend
file which has movie or image input nodes pointing to none existent
source files.
Campbell Barton [Sun, 20 May 2012 21:23:26 +0000 (21:23 +0000)]
code cleanup: spelling
Daniel Stokes [Sun, 20 May 2012 21:19:55 +0000 (21:19 +0000)]
Fix #31511: GLSL preview is much darker than F12 results
A problem caused by Harmony branch code. A value was being set improperly for the GLSL shader.
Campbell Barton [Sun, 20 May 2012 19:49:27 +0000 (19:49 +0000)]
code cleanup:
- style - multi-line ifs move braces onto new lines.
- iterators - convert some to macros, other split up and move brace.
Campbell Barton [Sun, 20 May 2012 18:19:45 +0000 (18:19 +0000)]
use utf8 functions for new modifier names
Gaia Clary [Sun, 20 May 2012 17:40:57 +0000 (17:40 +0000)]
Renamed the COLLADA Import/export labels to 'Collada (Default)' to make it better separatable from target specific exporters
Thomas Dinges [Sun, 20 May 2012 15:52:24 +0000 (15:52 +0000)]
Sequencer UI:
* Some consistency tweaks.
Nicholas Bishop [Sun, 20 May 2012 15:00:19 +0000 (15:00 +0000)]
Fix bug #31529 Remesh remove Apply as Shape button
Change modifier_sameTopology() to not not treat Nonconstructive
modifiers as having same topology. This function is only used to test
whether Apply as Shape is allowed.
The exact nature of "nonconstructive" modifiers is not documented, but
current list is remesh, fluidsim, decimate, mask, build, and
boolean. All of these modify topology, and should not be making making
shape keys.
Bastien Montagne [Sun, 20 May 2012 13:56:42 +0000 (13:56 +0000)]
Various small fixes:
*i18n: panel title of current tool in 3D view & File windows are now translated, as well a redo (F3) menu.
*MESH_OT_faces_select_linked_flat & MESH_OT_edges_select_sharp: use ANGLE RNA prop for sharpness, and fix tip of the later op.
Andrew Hale [Sun, 20 May 2012 12:52:46 +0000 (12:52 +0000)]
BMesh Py API Fix: hide attribute of BMesh elements was returning the select flag. Fixed for all elements including loops, although this is commented out anyway. Reported by Crouch in IRC.
Antony Riakiotakis [Sun, 20 May 2012 11:06:46 +0000 (11:06 +0000)]
Fix memory leak when trying to apply transformations to shared meshes
Thomas Dinges [Sun, 20 May 2012 00:34:54 +0000 (00:34 +0000)]
Sequencer UI:
* Code cleanup
* Fixed wrong label for Inverse Select in the Select menu
* Some layout tweaks for space saving and avoid abbreviations in the UI.
* "Image Offset" and "Image Crop" buttons were there twice, once in the Strip Input panel and once in the Effect Strip panel, show it in the Strip Input panel only now.
* Commented the third input fields ("input_3"), only used by the deprecated plugin system according to an RNA comment.
Nicholas Bishop [Sat, 19 May 2012 23:11:46 +0000 (23:11 +0000)]
Fix sculpt layer brush, broken by texture changes in r46651.
Dan Eicher [Sat, 19 May 2012 21:22:01 +0000 (21:22 +0000)]
Added 'LIBRARY_EDITABLE' flag to bpy.props.*
Rationale: custom props on linked objects are editable through ops and the console but the UI code calls RNA_property_editable() which returns false if (id->lib && !(prop->flag & PROP_LIB_EXCEPTION))
Setting the 'LIBRARY_EDITABLE' flag allows UI templates to change these props (but the changes aren't saved!) for things like indices into CollectionProperties which live on the linked object
Bastien Montagne [Sat, 19 May 2012 20:16:29 +0000 (20:16 +0000)]
Fix [#31535] Radian Unit System Button Ignored for Face Angles display.
Also avoid multiplying each vertex three times with obmat...
Campbell Barton [Sat, 19 May 2012 13:55:54 +0000 (13:55 +0000)]
style cleanup: whitespace/indentation
Campbell Barton [Sat, 19 May 2012 13:28:19 +0000 (13:28 +0000)]
code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
Campbell Barton [Sat, 19 May 2012 10:10:49 +0000 (10:10 +0000)]
disable overwriting the PYTHONPATH for windows - reported as [#31506]
Campbell Barton [Sat, 19 May 2012 09:57:55 +0000 (09:57 +0000)]
style cleanup: ghost
Bastien Montagne [Sat, 19 May 2012 09:46:41 +0000 (09:46 +0000)]
Add i18n to “button” and “Area Options” pop-up menus.
Campbell Barton [Sat, 19 May 2012 09:23:08 +0000 (09:23 +0000)]
style cleanup: ghost headers
Thomas Dinges [Fri, 18 May 2012 21:13:22 +0000 (21:13 +0000)]
3D View UI:
* Remove redundant "Delete" for Edge Loop in the Delete (X) menu.
Campbell Barton [Fri, 18 May 2012 20:13:40 +0000 (20:13 +0000)]
style cleanup: ghost/x11
Brecht Van Lommel [Fri, 18 May 2012 15:20:45 +0000 (15:20 +0000)]
Fix #31504: uv unwrap incorrectly scaling pinned islands.
Brecht Van Lommel [Fri, 18 May 2012 15:06:26 +0000 (15:06 +0000)]
Fix #31395: setting mesh.uv_textures['uvmap'].active did not update correctly.
Brecht Van Lommel [Fri, 18 May 2012 15:06:23 +0000 (15:06 +0000)]
Fix #31430: itasc solver assertion failure with debug builds.
Brecht Van Lommel [Fri, 18 May 2012 14:08:54 +0000 (14:08 +0000)]
add missing include
Brecht Van Lommel [Fri, 18 May 2012 14:06:53 +0000 (14:06 +0000)]
Fix #31518: changing cycles exposure did unnecessary rerender in viewport.
Brecht Van Lommel [Fri, 18 May 2012 14:05:59 +0000 (14:05 +0000)]
Fix #31400: opengl offscreen render not respecting theme settings.
Brecht Van Lommel [Fri, 18 May 2012 13:30:34 +0000 (13:30 +0000)]
Fix related to #31446: cycles glsl error with empty image texture node.
Benoit Bolsee [Fri, 18 May 2012 13:27:33 +0000 (13:27 +0000)]
Fix bug in controller list scan (introduced in recent code cleanup)
Brecht Van Lommel [Fri, 18 May 2012 12:49:27 +0000 (12:49 +0000)]
Add "Install Theme" button in user preferences, patch #31505 by Julien Duroure.
Brecht Van Lommel [Fri, 18 May 2012 12:49:25 +0000 (12:49 +0000)]
File browser: list of system directories is now refreshed on pressing the refresh
button or opening the file browser, in case e.g. a USB stick was inserted.
Patch #31211 by Julien Duroure.
Brecht Van Lommel [Fri, 18 May 2012 12:49:22 +0000 (12:49 +0000)]
Fix #31486: cycles texture coordinate reflection output has wrong direction.
Campbell Barton [Fri, 18 May 2012 10:37:49 +0000 (10:37 +0000)]
add option for screw modifier to smooth shade. (renamed smooth_shading to use_smooth_shade for remesh modifier too)
Campbell Barton [Fri, 18 May 2012 10:19:49 +0000 (10:19 +0000)]
patch [#31507] site not automatically imported when using external python package
made some modificatons to normal python startup also.
Lukas Toenne [Fri, 18 May 2012 10:00:31 +0000 (10:00 +0000)]
Fix for Tile image node. This was still using the path string for multilayer output instead of the dedicated layer name string.
Lukas Toenne [Fri, 18 May 2012 10:00:28 +0000 (10:00 +0000)]
When generating enums for the image node render layers, replace empty strings with a simple space character. This little hack allows the enum item to be selected from the dropdown list.