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
2012-05-23code cleanup: double promotion warningsCampbell Barton
2012-05-09code cleanup: color/bw conversion - use BLI color function.Campbell Barton
change modifier to use the average of the RGB since perceptual conversion isn't really needed for modifiers.
2012-05-06style cleanup: BKE_*.c files which deal with library functionsCampbell Barton
2012-05-05code cleanup: function naming, use BKE_*type* prefix.Campbell Barton
2012-05-05code cleanup: brush/camera namingCampbell Barton
2012-05-02Fix wrong unified weight paint value version patch, was doing incorrect ↵Brecht Van Lommel
version check. Fix #31209: weight paint sample & fill not using correct brush/unified value.
2012-04-30Add per-brush weight field.Nicholas Bishop
Patch from Jaggz H, thanks! [#31096] Weight-painting: Brush-specific weights http://projects.blender.org/tracker/?func=detail&atid=127&aid=31096&group_id=9 Each brush's weight can now be set individually, can also enable unified setting (same as size and strength have.) Added readfile code to the patch: subversion bumped to 1, brushes get default weight of 0.5, unified weight enabled by default and value from old vgroup_weight field.
2012-04-28style cleanup: changes to brace placement / newlines - for/while/if/switchCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-04style cleanup / comment formatting for bli/bke/bmeshCampbell Barton
2012-02-28code cleanup: use float vector size in function definitions, and const's ↵Campbell Barton
where the values are unchanged.
2012-02-23style cleanup for blenkernel, no functional changes.Campbell Barton
2012-01-19use color conversions functions in more places.Campbell Barton
also add rgba_float_to_uchar, rgba_uchar_to_float
2012-01-15Fix all remaining unified paint settings uses of current Scene.Nicholas Bishop
Things like brush size and strength accessors now take a scene parameter rather than guessing about which Scene's unified paint settings to use. Setting the size/strength through RNA can now be done separately for the brush or the UnifiedPaintSettings. The UI python code required updating to check whether the size/strength controls should use brush or UnifiedPaintSettings RNA. Radial control also required some updates to switch between the two RNA sources.
2012-01-14ensure functions are not used within FTOCHAR macro since they run 2-3 times.Campbell Barton
brushes were doing curve lookups within this macro for example.
2012-01-13Fix some RNA/scene issuess with unified paint settings.Nicholas Bishop
Added RNA for the unified paint setting flags that matches the Brush RNA. Fixed the getter/setter functions to avoid guessing which Scene's UnifiedPaintSetting to use. The getter functions take a Scene pointer now, the setter functions are removed in favor of a more explicit approach through RNA: Rather than RNA choosing whether a property's value is in the Brush or in the UnifiedPaintSettings, there are now explicit properties for both. The UI code has been modified accordingly to switch the toggle buttons between affecting the Brush and the UnifiedPaintSettings.
2012-01-12Rename the sculpt/paint unified flags for better consistency, no functional ↵Nicholas Bishop
changes
2012-01-12Move unified paint fields from ToolSettings into their own ↵Nicholas Bishop
UnifiedPaintSettings struct. File subversion is bumped to two in order to copy over the old fields. This removes two RNA properties, sculpt_paint_use_unified_size and sculpt_paint_use_unified_strength. Code review link: http://codereview.appspot.com/5529077
2011-12-30while checking weight paint code noticed that unified brush functions loop ↵Campbell Barton
over the scenes to get the flag. * this loop is called multiple times per vertex (not addressed in this commit) * functions like brush_use_size_pressure(), brush_use_size_pressure() called unified_settings() twice when they didnt need to. looks like this code cant work right with multiple scenes, added a comment on this - but at least avoid calling unified_settings() multiple times in single functions.
2011-12-10Fix #29516: Twist brush giving crazy resultsSergey Sharybin
- Rotation now happens around initial stroke location rather than around scene origin - Added slider for rotation strength which helps in cases only few rotation is needed to be to increase the precision of such strokes
2011-11-30fix [#29459] Crash making a linked object group localCampbell Barton
was an error with make-local refactor & path updating.
2011-11-11correct indentation and some whitespace edits (no functional changes)Campbell Barton
2011-11-07minor editsCampbell Barton
- remove unneeded type check from convert grease pencil operator. - correct some error prints & use __func__. - make copy_libblock take an ID* argument rather than void*.
2011-11-01added path traversal flag - BPATH_TRAVERSE_SKIP_MULTIFILE,Campbell Barton
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-10-27use path remapping for all make local functions, patch from Alex Fraser with ↵Campbell Barton
changes.
2011-10-27edits ontop of Alex's patch from r41292.Campbell Barton
pass main rather than use G.main when naming from -> to relative paths.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23fix some typo'sCampbell Barton
2011-09-11minor edits / cleanup - no functional changes.Campbell Barton
- use 'const float *' and array size in some function declarations. - replace macros for BLI_math functions INPF, VECCOPY, VECADD etc. - remove unused VertRen.clip struct member. - remove static squared_dist() from 2 files, replace with BLI_math function len_squared_v3v3(). - use vertex arrays for drawing clipping background in the 3D viewport.
2011-06-27scenes now adjust brush usercounts on copying and freeing, pointed out by ↵Campbell Barton
Jason Wilkins
2011-06-07fix for float projection painting, now updating correctly. Antony Riakiotakis
This fix also allows for partial update of the image, speeding up painting. The different code path implemented will be used to upload high resolution images to OpenGL when onion branch is merged. Due to conversion of float textures to/from sRGB, corrections made to brush color sampling to take account of the image profile. This is not 100% correct yet as texture images used for projection painting strokes are not converted to/from sRGB yet(This has been decided due to loss of precision for 8-bit formats). It will have to do for now, though. last-minute update, exr image loading is broken, will fix asap
2011-05-28Fix: The radial control would fail, in sculpt mode, to set size if ↵Jason Wilkins
object-space sizing was enabled. This was caused because a small part of sculpt's radial control code did not make it into the new version. The old code would set a new object-space size by scaling it proportional to how much the new screen-space size was changed. The solution I implement here is to do the same scaling inside the RNA callbacks. This way, users of those properties do not have to worry about inconsistency. I added a comment warning that brush_set_size, brush_set_unified_size, brush_unprojected_radius, and brush_set_unprojected_radius do not guarantee consistency because it is not always possible to precisely know what the new unprojected radius is in all contexts where you might set the size. I would implement the consistency check at the lower level (in those listed functions) but at this time I think it needs to be looked at to make sure that won't cause problems. In addition, I am not sure that scaling by the ratio of change is strictly correct in all cases. In any case, this at least fixes the immediate problem.
2011-05-12== Radial control ==Nicholas Bishop
Patch to make the radial control more generic with RNA. Patch was reviewed here: http://codereview.appspot.com/4280080/ Prior to this update, the radial control code in trunk had generic parts of the radial control implemented as an incomplete operator within WM. Then each different user of the radial control had to implement a separate operator to actually pass in specific brush data -- e.g. sculpt's brush size, vpaint's brush size, etc. This patch removes all the extra operators and makes the WM operator do everything. It now takes several RNA path strings as its properties -- the only required property is data_path, which specifies the data to be modified by the radial control. The other paths affect display in various ways, e.g. rotation, color, etc. In addition to decreasing some duplicate paint brush code, these updates make it pretty easy to enable radial control for other purposes (and it can be set up entirely though python or keymaps, no extra C code needed.)
2011-04-26fix [#27178] Material links lost when making mesh data localCampbell Barton
- making local object data - Curve/Mesh/MBall lost references to linked materials. - joining a linked mesh object into a local one lost the link. As well as these reported bugs, checked all local functions for consistency/correctness and found other cases which would also fail. - making local metaball didn't ensure unique ID name. - make_local_armature() was missing check for object users - main body of code would never run. - local particles didn't set the dupli-group or textures to extern. checked all local functions for consistency/correctness.
2011-04-21whitespace only, no functional change mixed tabs/spaces --> tabs.v2.57aCampbell Barton
2011-04-04Fixed invalid RNA access in radial brush operators (like strength/size ↵Sergey Sharybin
abjustment)
2011-03-28blenkernel: floats were being implicitly promoted to doubles, adjust to use ↵Campbell Barton
floats.
2011-03-08Prevent memory corruption when using fixed texture and fast strokes withSergey Sharybin
big spacing. Not sure if it's the best solution or it should be fixed when calculating new areas. It'll be cool if somebody else familiar with this area will check this.
2011-03-08Fix #26408: [texture paint] brush spacingSergey Sharybin
Implemented non-spacing strokes (which are making paint step at each mouse-move event).
2011-03-01Fix #26218: texture paintSergey Sharybin
- Added option "Fixed Texture" to the UI. Because of strange reason, this feature was implemented but hidden from users. Would be cool, if somebody familiar with 2d texture paiting check. - Fixed some issues in existing code of fixed texture paiting. It now handles brush radius and curve correct. - Also fixed issue with paiting with texture from node tree - it used to be painted with regular brush color instead of texture.
2011-02-27doxygen: blender/blenkernel tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-14misc small changes:Campbell Barton
- rename rna collection structs Main prefix to BlendData: eg, MainObjects --> BlendDataObjects - printing python collection now prints its type (when available) - renamed shadowed vars in bpy_rna.c. - when making functions static I also made debugging/test functions static, reverse and add definitions to headers instead.
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2011-02-04Fix #25933: Drag Dog stroke method uses Jitter if set for other stroke ↵Sergey Sharybin
method, but no jitter available. Manually disable jitter usage for anchored and drag dot brush stroke metdhods. Jitter slider is hidden in UI for this strokes so users can't set it to 0 by hand and even if this slider would be visible in UI jitter gives wierd result for this stroke methods.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2010-11-04workaround [#24392] 2d Image paint editor: no clone/smear/soften tools etcCampbell Barton
the brush system matches the brush mode with the object mode, but this doesn't work for 2D image view paint. since the poll() function doesnt have access to the context, for now just check if no paint modes are active, default to texture paint.
2010-10-31initialize structs to zero rather then using memset().Campbell Barton
2010-10-16most unused arg warnings corrected.Campbell Barton
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-09-23bugfix [#23595] Texture paint with a node based brush produces artifactsCampbell Barton
also changed displace modifier not to link object depgraph when not using object texturespace.