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
2014-11-19Refactor: Move part of vgroup handling code from ED_mesh/object_vgroup.c to ↵Bastien Montagne
BKE_object_deform. Along with some minor cleanup and simplifications. Reviewers: campbellbarton Subscribers: sergey Differential Revision: https://developer.blender.org/D903
2014-10-08Select Random in Particle Edit Mode, by jezvLukas Tönne
Added the select random functionality in particle edit mode for hairs or control points. Reviewers: campbellbarton, lukastoenne Reviewed By: lukastoenne Subscribers: campbellbarton, kevindietrich, jezv Projects: #quick_hacks, #bf_blender, #physics Maniphest Tasks: T37873 Differential Revision: https://developer.blender.org/D809
2014-10-08Ghost Context RefactorJason Wilkins
https://developer.blender.org/D643 Separates graphics context creation from window code in Ghost so that they can vary separately.
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-09-19Fix T41865: Fluid bake not possible in windows using a python script from ↵Sergey Sharybin
the command line Stupid missing variables initialization.
2014-07-11Fix T41019: Calculate Mass does not calculate actual volume.Lukas Tönne
This was a ToDo item, for mesh-based rigid body shapes (trimesh, convex) the operator was simply using the bounding box volume, which can grossly overestimate the volume and mass. Calculating the actual volume of a mesh is not so difficult after all, see e.g. http://research.microsoft.com/en-us/um/people/chazhang/publications/icip01_ChaZhang.pdf This patch also allows calculating the center-of-mass in the same way. This is currently unused, because the rigid body system assumes the CoM to be the same as the geometric object center. This is fine most of the time, adding such user settings for "center-of-mass offset" would also add quite a bit of complexity in user space, but it could be necessary at some point. A number of other physical properties could be calculated using the same principle, e.g. the moment of inertia.
2014-07-02Fix T40815: Particle birth times not initialized correctly.Lukas Tönne
In rB78c491e the `initialize_particle` function was split into 2 parts for particle texture initialization. The texture init part however also initializes birth times, which is now missing in the main init function in some cases (notably when setting start/end directly without a subsequent time step).
2014-06-26Code cleanup: remove MAT3/4_UNITY defines, just call unit_m3/4Campbell Barton
2014-06-17Fix T40638: Crash in Particle System, Connect HairSergey Sharybin
2014-06-01Fix T40447: Creating Rigid Bodies is rejected for meshes without polys.Lukas Tönne
This check prevents using empty (no faces) meshes as rigid bodies. While the idea makes sense, it also prevents using modifier-constructed meshes, where faces are added only by the modifiers. Further the check is very easy to circumvent, by removing faces after making the rigid body, or by assigning a different mesh datablock afterward. Suggested by Fabian Emmes (@der_fab).
2014-05-05Stop all dynamic enums using translations (from blend file data)Campbell Barton
2014-04-30Code cleanup: remove unused headerCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-26Code cleanup: use 'const' for arrays (editors)Campbell Barton
2014-04-23Code cleanup: style and use switch () for (un)packCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-27Fix T38928 Particle add brush would generate trash on meshes with ↵Antony Riakiotakis
use_modifier_stack enabled Issue here is complex (Of course, this is particles!) First issue is that use_modifier_stack will use the num parameter of the particles instead of num_dmcache, something the brush code did not account for at all. Now correctly set DMCACHE_ISCHILD in that case. Second issue is that make_derived_deform will return a mesh with less indices than the particle system derived mesh. This would mean that subsequent sampling of the particle derived mesh to initialize the particles woould also produce garbage. This was being done for optimization but in that case it broke the system. Reviewers: lukastoenne Differential Revision: https://developer.blender.org/D429
2014-03-18KDTree: deprecate 'normal' argumentCampbell Barton
Normals for each kdtree node were allocated but never used, and search args only use in particles/boids code.
2014-03-12Fix for particle edit mode using wrong pixel distances.Lukas Tönne
rB57dba739176153e052d77611ff0e554f05984686 unified pixel distance values but omitted a factor 100 for particle edit.
2014-03-11View3d: take pixelsize into account for selection distanceCampbell Barton
2014-03-01Fix for memory leak in particle brushCampbell Barton
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-02-05Fix T35247: Particle texture behaves incorrectly after changing the number ↵Sergey Sharybin
of particles Root of the issue goes to the order of particle initialization which does texture evaluation (which does depend on particle coordinate) and particle birth coordinate calculation. So basically what happened is: * Changing number of particles re-allocated all the particles, which sets their coordinate to (0,0,0) * Texture evaluation used this non-initialized coordinate * Coordinates were calculated for particles Reshuffled code a bit so now texture evaluation happens after particles. coordinate calculation. Basically moved texture evaluation to particle reset function. Reset happens after initialization anyway and it does know particle coordinates. Also, if reset is being called without init then it's also kind of logical to re-evaluate texture because particle coordinates might change.
2014-02-05Code cleanup: use bool for static methodsCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2014-02-02Code cleanup: suffix vars to make obvious they are squaredCampbell Barton
2014-01-15Fix T38233: Right click in Particle Edit mode closes applicationSergey Sharybin
It was wrong memory access in selection operators when point doesn't have keys.
2014-01-08Fix T38112: Rigid Body can't be created for objects with linked meshSergej Reich
Make poll function for rigid body add operators less strict.
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-10-31remove return argument from wmOperatorType->cancel, was only ever returning ↵Campbell Barton
OPERATOR_CANCELLED.
2013-09-30Fix #36853, Undo not working for Particles Hair - Free Edit.Lukas Toenne
Resetting the particle system without losing edit undo is not so easy. Just added a confirm message for now to warn user about loss of particle edit undo.
2013-09-12code cleanup: headers - doxy comments.Campbell Barton
2013-09-07rename cursor setting functions to make modal set/restore more clearly ↵Campbell Barton
related functions.
2013-09-02use strict flags for kdtree, and replace ints with unsigned ints where possible.Campbell Barton
also replace callocs with mallocs since zeroing memory can be avoided.
2013-08-29follow up on r59628, setting modes now ensures that other modes exit first,Campbell Barton
this was only done in some cases before and it was possible to enable weightpaint+sculpt at the same time when enabling sculpt by directly running the mode switching operator. add generic function to ensure a compatible mode before entering the new mode (added to each operators exec function)
2013-07-15Fix #36058: Displace Modifier errors using a baked Image and displace baking ↵Sergey Sharybin
inconsistency between 2.67/2.68RC and previous versions This was in fact really nasty bug, caused by multitex_nodes function using global variable R (which is a copy of current renderer). this variable is not initialized to anything meaningful for until first rendering (preview or final) happened. Since multitex_nodes might be used outside of render pipeline, made it so whether CM is on or off as an argument to functions multitex_ext_safe and multitex_ext. Now multitex_nodes() is only shall be used for stuff happening from render pipeline! Also needed to make some changes to other places, so all the usages of texture sampling knows for the fact whether CM is on or off. And one more change is related on behavior of dispalcement, wave, warp, weightvg modifiers and smoke. They'll be always using CM off since texture is used for influence, not for color. It's rather bigger patch, but it's mostly straightforward changes, which we really need to be done. Reviewed by Brecht, thanks!
2013-07-10fix for particle lasso-select inverting the selection.Campbell Barton
2013-07-10fix [#35406] Hair puff brush bugCampbell Barton
- puff was interpolating hair that made longer strands cirl up. - also fixed problem with puff-volume option, it was over-accumulating so unselected parts of the hair would have too much offset applied.
2013-06-25Include DNA_scene_types before ED_object instead of forward enum declarationSergey Sharybin
Forward enum declaration is a bad idea, especially for C++ which requires enum specification to dteermine which data type to use to store it. Alternative would be to not use enum as an arument and pass it as int, but actually would rather be strict on typing -- using explicit enum as parameter type helps understanding the code and prevents possible mistakes when using the function.
2013-06-03fix [#35477] Clicking "Connect Hair" button translates a mesh by it's object ↵Campbell Barton
location.
2013-05-30remove redundant includes from cmake and scons.Campbell Barton
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-21Fluid simulation manual number of threads option now doesn't set the numberBrecht Van Lommel
of threads to the number of cores when the fluid is created. Rather it is now set to 0 which means "use the number of threads specified for the scene".
2013-05-20code cleanup: scons - binreloc include was copied all over the place for no ↵Campbell Barton
reason, -pthread too.
2013-05-20code cleanup: split scons includes onto multiple lines, reduce chance of ↵Campbell Barton
include conflicts later on.
2013-05-20code cleanup: replace PARALLEL define with _OPENMPCampbell Barton
2013-05-17rigidbody: Add missig notifiers for add/remove operatorsSergej Reich
Fixes [#35403] Highlight not updating instantly when removing from Rigid body
2013-05-16Fix #35368:Brecht Van Lommel
* Editing number of segments for particle hair did not update the viewport. * Hidden particles were confusing, the paths were drawn but without the points. Now it draws the path faded to indicate that they are hidden/locked. * Select tips/roots operators now have options to select/deselect/toggle/invert.
2013-04-23fix [#35007] clipping border errorCampbell Barton
add clip option to ED_view3d_win_to_ray(), ED_view3d_win_to_segment()