Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-06-20transform: 2d option for proportional editmode,Campbell Barton
Uses for view orientation for distance calculation, can give nicer results when you dont want twisting caused by changes in depth.
2013-06-19This commit tackles the "context" buttons in Properties header, which were ↵Bastien Montagne
still using "ugly" old UI code. It removes buttons_header.c file, adds a (small) space_properties.py one, with a PROPERTIES_HT_header class, which simply uses the RNA enum to draw the context buttons. It also fixes that enum, btw, it always featured all contexts, which means you could (try to!) set through RNA invalid contexts... Thanks to brecht and dingto for the reviews.
2013-06-18add option to enable auto-execute scripts, but exclude certain directories.Campbell Barton
2013-06-18use booleans for operator check functions.Campbell Barton
2013-06-16when setting the subframe for large frames (250,000+) the precision was very ↵Campbell Barton
poor. now use double precision when combining the frame+subframe.
2013-06-15Added a 'move' function to node tree socket api (similar to ↵Lukas Toenne
node.inputs/outputs.move). This allows moving sockets in a node group interface from python without breaking external links.
2013-06-14Code cleanup: removed unused B_BUTSPREVIEW event, and moved back ↵Bastien Montagne
rna_SpaceProperties_texture_context_itemf() together with its fellow functions.
2013-06-14fix for building c++ rna api with recently added smoothgroup api call.Campbell Barton
2013-06-14expose smooth group calculation to python as Mesh.calc_smooth_groups()Campbell Barton
2013-06-14Added a read-only dimensions property for Nodes. This returns the actual ↵Lukas Toenne
node size as calculated in the node_update functions. It can be useful for node layout scripts, since the width/height properties are not an accurate representation of the actual node size which is determined by the uiLayout. Please note that the dimensions calculation depends on the drawing of nodes, so it may not get updated if nodes are not visible in any editor. Also the node height in particular can change dramatically based on previews, visible sockets, etc.
2013-06-13Safety check for NodeTree.links.new function: Added NEVER_NULL flags to ↵Lukas Toenne
from_socket/to_socket arguments to make sure the function doesn't crash when passing None/NULL.
2013-06-12Track Position node now could output absolute position of track at a given frameSergey Sharybin
2013-06-12Remove magic constants from Track Position node RNA code.Sergey Sharybin
2013-06-12Fix #35703, Viewer node doesn't updates image sometimes. The viewer node was ↵Lukas Toenne
not getting correctly initialized node->id pointer to the Viewer image (thanks to Sergey for figuring that out). The original proposal was to add another special init hack for the viewer node->id, but rather would do it right and so moved all the special init hacks for constant ID backpointers (Scene for RenderLayer, Composite, Defocus, FileOutput and MovieClip for MovieClip, MovieDistortion and Stabilization nodes). These are now part of the local init callbacks functions of the appropriate nodes, using the new initfunc_api callback which takes a Context pointer, so they have access to Scene.
2013-06-12Fix lamp size allowing negative values.Brecht Van Lommel
2013-06-11Fix #35704: Simplify on scene with dupli recursion crashesSergey Sharybin
Couple of issues here: - User shouldn't be able to run into dupligroup recursion. It was checking already when setting a group for dupli. Added check to operator which adds object to group. - It's still possible files with recursion are hanging around, so made simplify function robust to such kind of crap.
2013-06-10Fix #35681: cycles excluded layers still got evaluated before and afterBrecht Van Lommel
rendering even if they were not used on any render layers.
2013-06-10Custom Group Node type for extending existing nodes from python scripts. ↵Lukas Toenne
This is a sort of workaround for the lack of APIs in our existing node systems (compositor, cycles, BI, textures). These systems don't have any way to deal with scripted node types yet, which could in principle by added with pynodes. The NodeCustomGroup type adds a way of scripting nodes by automating node groups which the hardcoded system can then interpret like regular groups. The new NodeCustomGroup type has the basic node_tree pointer property like the regular group node types and also uses the same socket interface system as regular groups. This means that input/output sockets can be mapped to internal nodes in the same way as regular node groups in renderers and the compositor. On top of that, however, the NodeCustomGroup type can be subclassed in python scripts to flesh out scripted node types with own draw functions, properties, updates and so on. NB: Only cycles currently supports this node type and its derivatives, other systems may follow later.
2013-06-10RNA: simplify space type items code, no need to have this duplicated.Brecht Van Lommel
2013-06-10correction to typo in r57327, ui-load wasnt working on splash screen.Campbell Barton
also minor changes: - update the load-UI flag when changing in the preferences. - remove unused initialization values for subdivide.
2013-06-10Fix for r57316: SPACE_EMPTY *is* needed in RNA enum for now, exported ↵Bastien Montagne
keymaps abuse it... So for now, static enum is back to its previous form, and the menu one is dynamically generated by a callback. Not nice, but works.
2013-06-10Bugfix [#35643] Animated textures are invisible in Graph Editor if it is notJoshua Leung
linked via material Textures linked to modifiers are now shown in the AnimEditor channel hierarchy under object level now (i.e. on same level as ob-data, shapekeys, and object's action). This makes it possible to edit such animation data without having to ensure that these textures are also linked to the object's material so that they will appear. As a side-effect of how this is implemented, if playback is slower on scenes following this commit, disable the "modifier" filter under the filtering settings in the relevant animation editor header. In particular, it may be beneficial to disable this when you've got scenes with meshes that have many modifiers (but none of these have any linked data with settings which can be animated), as Blender will still try to go through all those modifiers checking for anything to show.
2013-06-09This commit replaces old "manual" Editors menu with nice RNA-based one (so ↵Bastien Montagne
once again, some cleanup of old UI code). It makes the following changes: * RNA's editor types enum (space_type_items) has been re-ordered, added icons, and removed internal-only SPACE_EMPTY value, so that it matches the menu. * Two fixes in code drawing enums as dropdown menu: ** All items were taken into account when computing the number of needed columns, now simple separators (void string items) are ignored. ** Simple separators items were drawn as labels, taking far too much space! And now translators will be free from that ugly, insane menu-string! :P Thanks to Brecht for the review.
2013-06-09add editmode wire color,Campbell Barton
also changed lattice to use this, it used a hard-coded green color which was hard to see over the default background.
2013-06-08UI / Modifiers:Thomas Dinges
* VERTEX_WEIGHT modifiers had quite a messy UI, improved the grouping of options a bit, so it is easier to scan through. * Do not use abbreviations like "Rem" or "Dist" in the UI... * Also small change for BEVEL modifier UI for more efficient space usage.
2013-06-07code cleanup: use more standard names for userpref ui functions was using ↵Campbell Barton
`context` for style vars.
2013-06-06style cleanupCampbell Barton
2013-06-06fix [#35646] Image offset value in empty image display mode should be unitlessCampbell Barton
2013-06-06Fix for frame node property display: Extended frame node properties such as ↵Lukas Toenne
the "shrink" option were not shown in the node editor sidebar. This was because the RNA type for the node was not using NodeInternal as a base, which is a wrapper to expose the C callbacks as methods in bpy. Now these basic node types are also based on NodeInternal to ensure the full interface is available to py scripts. In the process removed the unused NodeGroup register function, this doesn't work nicely anyway because it requires multiple inheritance which RNA doesn't support (so py node groups should be done entirely in python in the future).
2013-06-05fix [#35453] "copy mirrored uv coords" doesn't workCampbell Barton
- made precision configurable. - report a warning when doubles are found since they cause problems. added Polygon.center attribute to avoid calculating in python.
2013-06-04edit-mesh improvements to select shortest pathCampbell Barton
- Ctrl+RMB only worked for edges & faces - Menu item 'Select Shortest Path' only worked for vertices. Now Ctrl+RMB works for vertices and the menu item works for verts/edges/faces (depending on the current selection).
2013-06-03fix [#35311] Planar Decimate / Limited Dissolve fails to merge some adjacent ↵Campbell Barton
faces optionally limit by face flipping, also added support to delimit by material and edge crease.
2013-06-03fix [#35468] screen list shows temp layoutCampbell Barton
2013-06-03fix [#35501] Operator log: some property changes log as [...].(null) = ...Campbell Barton
2013-06-02Better API design for making text datablocks after loading.Tamito Kajiyama
An optional 'internal' argument was added to the bpy.data.texts.load() operator. The changes in revision 57153 were reverted, so that the is_in_memory and is_dirty properties of text datablocks are not editable again. In the C API layer, BKE_text_load_ex() was introduced to allow for optionally making text datablocks internal after loading.
2013-06-01rna small fixes (bad copy-pasting)Dalai Felinto
2013-06-01add popup menu to allow python scripts to show popups without having to ↵Campbell Barton
define a menu class first.
2013-05-31Made text datablock properties 'is_in_memory' and 'is_dirty' editable in Python.Tamito Kajiyama
The rationale of this revision is to provide an easy way to make text datablocks internal from within Python (i.e., by setting these properties to True and the 'filepath' property to empty string).
2013-05-30Motion tracking: automatic keyframe selectionSergey Sharybin
Implements an automatic keyframe selection algorithm which uses couple of approaches to find out best keyframes candidates: - First, slightly modifier Pollefeys's criteria is used, which limits correspondence ration from 80% to 100%. This allows to reject keyframe candidate early without doing heavy math in cases there're not much common features with first keyframe. - Second step is based on Geometric Robust Information Criteria (aka GRIC), which checks whether features motion between candidate keyframes is better defined by homography or fundamental matrices. To be a good keyframe candidate, fundamental matrix need to define motion better than homography (in this case F-GRIC will be smaller than H-GRIC). This two criteria are well described in this paper: http://www.cs.ait.ac.th/~mdailey/papers/Tahir-KeyFrame.pdf - Final step is based on estimating reconstruction error of a full-scene solution using candidate keyframes. This part is based on the following paper: ftp://ftp.tnt.uni-hannover.de/pub/papers/2004/ECCV2004-TTHBAW.pdf This step requires reconstruction using candidate keyframes and obtaining covariance matrix of 3D points positions. Reconstruction was done pretty much straightforward using other simple pipeline routines, and for covariance estimation pseudo-inverse of Hessian is used, which is in this case (J^T * J)+, where + denotes pseudo-inverse. Jacobian matrix is estimating using Ceres evaluate API. This is also crucial to get rid of possible gauge ambiguity, which is in our case made by zero-ing 7 (by gauge freedoms number) eigen values in pseudo-inverse. There're still room for improving and optimizing the code, but we need some point to start with anyway :) Thanks to Keir Mierle and Sameer Agarwal who assisted a lot to make this feature working.
2013-05-29Fix #35374: Region overlap + bugsSergey Sharybin
Was missing keymap for REGION_TIMER, which ended up in missing updates happening. Added this kind of timer to RNA, so keymaps could bind to it. Also made 3ds max keymap working again. Too bad it was broken in 2.67 and 2.67a :S
2013-05-29Remove the NODE_OPTIONS flag usage from node->typeinfo. This is a redundant ↵Lukas Toenne
flag which can be replaced by simply checking for nodetype->uifunc/uifuncbut callbacks (if these callbacks are defined the node type generally supports options). Note that the node->flag still uses NODE_OPTIONS as a switch to toggle the display of such options!
2013-05-29Node options draw function fix for C nodes: use the default button draw ↵Lukas Toenne
function as a fallback if no extended draw function is defined.
2013-05-28move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)Campbell Barton
remove MEM_sys_types.h which was a duplicate.
2013-05-28Cycles: normal maps are now backwards compatible again after recent fix, withBrecht Van Lommel
a separate Blender Object/World Space that is compatible with Blender render baking and uses the YZ flipping convention.
2013-05-28code cleanup: lots of calls to BKE_mesh_calc_normals_mapping were not using ↵Campbell Barton
the mapping functionality. replace ED_mesh_calc_normals with BKE_mesh_calc_normals().
2013-05-28fix [#35543] Bezier curve width and twist fail to apply when more than 1 ↵Campbell Barton
point is edited
2013-05-27Picky UI message fix...Bastien Montagne
2013-05-27Particles: patch #35205 by Jakub ZolcikBrecht Van Lommel
The Emission panel now has a Use Modifier Stack option to emit particles from the mesh with modifiers applied. Previously particles would only be emitted from faces that exist in the original mesh. There are some caveats however: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.68/Tools#Particles
2013-05-26BLI_math rename functions:Campbell Barton
- mult_m4_m4m4 -> mul_m4_m4m4 - mult_m3_m3m4 -> mul_m3_m3m4 these temporary names were used to avoid problems when argument order was switched.
2013-05-24Changes for masks APISergey Sharybin
Made it more consistent with blender convensions and now it's very familiar to curve's python api. - Made it spline.points.add(count) wich is more efficient in cases lots of points are adding. (points.new was removed tho). - Removed mask_layer.splines.add(), now it's only mask_layer.splines.new(), which is how splines are adding for curves.