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
2019-09-03GPencil: Fix unreported autolock layers using DopesheetAntonio Vazquez
When select a layer in Dopesheet, the autolock layer was not working. Now the Dopesheet code calls the function for autolock. Also some code cleanup to move the logic to new function.
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558
2019-08-21Fix T68943: GPencil Time modifier gets strange value in offset parameterAntonio Vazquez
This is due a limitation in the RNA property when the range is too extreme. As we don't need that, the value was set to SHRT_MAX frames as maximum offset. Also fixed the same problem in other modules of Grease Pencil.
2019-08-19GPencil: Change UI scale for z-depth offsetAntonio Vazquez
Actually, the value for this parameter must be in the order of 0.00001 and this makes the UI uncomfortable. Now, the value is divided by 1000 internally and the UI values are more logic. Reviewers: mendio, pepeland Differential Revision: https://developer.blender.org/D5528
2019-08-19LibOverride: add some more missing override flags for RNA ID pointers.Bastien Montagne
2019-07-02GPencil: New python API for closing strokes with geometryAntonioya
Adds to API the last function created to close strokes in a previous commit.
2019-07-01GPencil: Add new parameter to python API for activating the new created frameAntonioya
Sometimes is required to enable the frame created and new "active" parameter allows to do that. Use: `gpl.frames.new(5, active=True)`
2019-06-28GPencil: Rename "Clamp Layer" to "Mask Layer"Antonioya
The old name was not meaning what this option does. Dtected while writting the manual.
2019-06-26GPencil: Change "lock_material" tooltip and textAntonioya
The old name was not clear. Detected while writting the manual.
2019-06-13T65783: UI Inconsistency with Grease Pencil icons in Properties and OutlinerAntonioya
Fixed Properties and tab icons
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-06-03Cleanup: style, use braces in RNACampbell Barton
2019-05-31Cleanup: undeclared variable warningCampbell Barton
2019-05-30GPencil: Rename Blend mode "Normal" to "Regular"Antonioya
The UI used "Regular" already, but internally the code didn't.
2019-05-28Fix T64005: GPencil clamping pixels do not always workAntonioya
2019-05-27Fix T65190: GPencil stroke not correctly initializated using python APIAntonioya
The value of new gradient fields was wrong.
2019-05-21Fix T64936: Grease Pencil point pressure max value too lowAntonioya
The API had an old limit of 1.0f.
2019-05-20Cleanup: reorder report argument for pointer assignmentCampbell Barton
Most code uses ReportList argument last (or at least not first) when an optional report list can be passed in.
2019-05-17Python: Raise an error even NO_MAIN data is assigned to objectSergey Sharybin
The goal is to prevent assignment of temporary or evaluated meshes to objects from the main database. Majority of the change is actually related on passing reports around. On a positive side there are more error prints which can become more visible to scripters. There are still possible further improvements in the related areas. For example, disable user counting for evaluated ID datablocks when assignment happens. But can also happen later on as a separate improvement. Reviewers: brecht, campbellbarton, mont29 Reviewed By: brecht Differential Revision: https://developer.blender.org/D4884
2019-05-16GPencil: New filter in Onion by keyframe typeAntonioya
This new filter allows to select only some type of keyframe (keyframe, breakdown, etc). This was a request of artists that are used to work with other 2D softwares. Also some cleanup to remove aninmatable option to some properties.
2019-05-02GPencil: Add API property to check annotationsAntonioya
This new property allows to check if the current datablock is an annotation or is used in a grease pencil object. This property is required for some Add-ons.
2019-04-21Cleanup: comments (long lines) in makesrnaCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-15GPencil: New Dots gradientAntonioya
This commit adds support for drawing Dots strokes with a gradient factor to get artistic effects like watercolor. Currently, the option is only supported by Dots materials, and in the future will be added to line strokes, but now there is a limitation on drawing engine and we will keep disabled on Line materials. Also, added the option to align Dots and Boxes strokes textures aligned with the drawing path to get more fluid strokes.
2019-04-03GPencil: Implement custom channel color in DopesheetAntonioya
A new parameter in the layer adjustment panel allows to define the color of the channel in Dopesheet. This is needed when there are a lot of layers. See D4623 for more details.
2019-03-28Fix T63031: Keyframing Annotations doesn't workAntonioya
By design the annotation parameters must not be animatable. Annotations are designed to take notes, not to create animations, so any animatable parameters have been flagged as non-animatable. Note: As some properties are shared with grease pencil, I had to duplicate one property (adviced by @mont29) to keep grease pencil animatable but annotations don't.
2019-03-24Cleanup: redundant use of string formatting functionsCampbell Barton
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-04GPencil: Move Object Depth Order to ObjectAntonioya
There was a conflict between Object "In Front" and how the strokes were managed in Stroke panel for grease pencil datablock. In order to keep consistency, the order of the object has been moved to Object level and now it's using the standard "In Front" flag. As all it is 3D, the option "Back" has been removed. This also fixes the problem with task T62137. Also related to commit 54ffc4e19dc4 and D4405
2019-02-26Units: GP Canvas OffsetWilliam Reynish
Use PROP_TRANSLATION for this to make it correctly display units in the UI.
2019-02-26Fix indentation issue introduced in rB54ffc4e19dc4William Reynish
2019-02-25Grease Pencil naming: Use clear names for depth orderingWilliam Reynish
- Add a new panel to differentiate between viewport display and stroke options - Use clearer naming for depth ordering and stroke thickness properties Reviewers: antoniov Differential Revision: https://developer.blender.org/D4405
2019-02-23GP: Define new Draw ModeAntonioya
Add a new Draw Mode to display panel in order to define the z-.depth order of the strokes using the real 3D position and not the 2D layer position. This change makes possible to use VR with grease pencil drawings because the depth of the strokes change with camera position. Also, provide an alternative solution to tasks: T57859, T60325, The parameter only works with 3D space depth ordering. The Back and Front depths are incompatible with 3D Space mode. Options are: - Back - Front - 3D Space->2D Layers (default) -3D Space->3D Location (new mode)
2019-02-20RNA: use factor when appropriateWilliam Reynish
- Many factor properties were set to PROP_NONE, even properties that had 'Factor' in the name! - Some time properties were not set to PROP_TIME, especially in Particles. - Changed motion_blur_shutter to use a soft max value of 1 instead of 2. Anything > 1 here is not physically correct and makes no real logical sense. - Changed display name of Dynamic Paint dissolve_speed to Dissolve Time, since it's a time property, not speed.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-12Fix T51771: UI Messages: Reserve 'Normal' to its geometric meaning.Bastien Montagne
Using 'Regular' instead for the common meaning, this avoids having to add some i18n context disambiguation...
2019-02-06Cleanup: manually apply changes missed last commitCampbell Barton
Automatic edits failed for indented comment blocks, removed indentation & adjusted.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-11GP: New Cutter, Constraints and Segment selectionAntonioya
This commit groups a set of new tools that were tested in grease pencil object branch before moving to master. We decide to do all the development in a separated branch because it could break master during days or weeks before the new tools were ready to deploy. The commit includes: - New Cutter tool to trim strokes and help cleaning up drawings. - New set of constraints and guides to draw different types of shapes. All the credits for this development goes to Charlie Jolly (@charlie), thanks for your help! - Segment selection mode to select strokes between intersections. - New operator to change strokes cap mode. - New option to display only keyframed frames. This option is very important when fill strokes with color. - Multiple small fixes and tweaks. Thanks to @pepeland and @mendio for their ideas, tests, reviews and support. Note: Still pending the final icons for Cutter in Toolbar and Segment Selection in Topbar. @billreynish could help us here?
2018-12-30Cleanup: warnings (clang)Campbell Barton
2018-12-28GP: Rename GP_STROKE_RECALC_CACHE to GP_STROKE_RECALC_GEOMETRYAntonioya
The GP_STROKE_RECALC_CACHE identifier was changed to GP_STROKE_RECALC_GEOMETRY because the previous name was confusing and could be confused with the recalculation of the Draw Manager cache.
2018-12-24Cleanup: First batch of UI messages fixes (typos, final points...).Bastien Montagne
Also contains some code typo fixes (mostly, adtaptative -> adaptive, former is nearly innexistant in English, let's stick to simple valid words ;) ).
2018-12-21GP: Cleanup API removing extra ID parameterAntonioya
2018-12-20GP: Changes in API to make internal updateAntonioya
Now, the internal data is recalculated when add or remove a point. The change in the API affect to stroke.points.add() that now requires a datablock parameter. This parameter is required to identify the datablock affected. For example: stroke.points.add(gpencil, 1) instead of stroke.points.add(1) This is the second try to fix T59600
2018-12-20Revert "GP: New Python update API functions (WIP)"Antonioya
This reverts commit e79f401ffa7d5354dde01073bbb4b7dd742fd32b. The new API were against general design rules.
2018-12-20GP: New Python update API functions (WIP)Antonioya
For strokes: myframe.strokes.update(mystroke) For datablock: gpencil = bpy.data.grease_pencil['gpencil'] gpencil.update() Still need a manual refresh of viewport.
2018-12-10GP: Make Onion Skin ON as default RNA valueAntonioya