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
2022-04-19Cleanup: run autopep8 on release/scripts/startup/Campbell Barton
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2021-08-27Refactor IDProperty UI data storageHans Goudey
The storage of IDProperty UI data (min, max, default value, etc) is quite complicated. For every property, retrieving a single one of these values involves three string lookups. First for the "_RNA_UI" group property, then another for a group with the property's name, then for the data value name. Not only is this inefficient, it's hard to reason about, unintuitive, and not at all self-explanatory. This commit replaces that system with a UI data struct directly in the IDProperty. If it's not used, the only cost is of a NULL pointer. Beyond storing the description, name, and RNA subtype, derived structs are used to store type specific UI data like min and max. Note that this means that addons using (abusing) the `_RNA_UI` custom property will have to be changed. A few places in the addons repository will be changed after this commit with D9919. **Before** Before, first the _RNA_UI subgroup is retrieved the _RNA_UI group, then the subgroup for the original property, then specific UI data is accessed like any other IDProperty. ``` prop = rna_idprop_ui_prop_get(idproperties_owner, "prop_name", create=True) prop["min"] = 1.0 ``` **After** After, the `id_properties_ui` function for RNA structs returns a python object specifically for managing an IDProperty's UI data. ``` ui_data = idproperties_owner.id_properties_ui("prop_name") ui_data.update(min=1.0) ``` In addition to `update`, there are now other functions: - `as_dict`: Returns a dictionary of the property's UI data. - `clear`: Removes the property's UI data. - `update_from`: Copy UI data between properties, even if they have different owners. Differential Revision: https://developer.blender.org/D9697
2021-07-06Cleanup: pep8Campbell Barton
2021-06-15Cleanup: unused argument & variable warningsCampbell Barton
2021-04-22Animation: add "LocRotScaleCProp" keying setSybren A. Stüvel
Add a keying set that includes location, rotation, scale, and custom properties. The keying set is intentionally not based on the "Whole Character" keying set. Instead, it is generic enough to be used in both object and pose animation, making it possible to quickly switch between animating characters and props without switching keying sets. This is, according to @rikkert, what the Blender Studio animators need 99.9% of the time.
2021-04-20Cleanup: keying sets, move common code to mix-in classSybren A. Stüvel
Move code common to the Whole Character keying sets ("Whole Character" and "Whole Character (Selected Bones Only)" into a mix-in class. This avoids the need to use direct assignments like `poll = BUILTIN_KSI_WholeCharacter.poll`. No functional changes.
2021-04-20Cleanup: keying sets, use `self` as self-parameterSybren A. Stüvel
Use `self` as self-parameter of methods, instead of the non-standard and cryptic `ksi`. No functional changes.
2020-12-10Fix missing custom-property escaping for whole-character keying setCampbell Barton
Custom properties with characters that needed escaping had f-curves created with invalid paths.
2020-10-07UI: Fix capitalization in various placesYevgeny Makarov
Follow the MLA style, agreed upon in T79589. This means "from" within UI labels should be lowercase. Differential Revision: https://developer.blender.org/D8345
2020-07-02UI: Dont abbriviate location & rotationAaron Carlisle
This resolves one of the last few areas where we still use inappropriate abbreviations. Reading abbreviated words is usually slower, because users must parse, guess and translate the words. Using abbreviations such as 'rot' is also especially bad since it's a word in itself too. The main advantage of abbreviations is that they are faster to *write*, which just isn't a concern for text in the UI. Differential Revision: https://developer.blender.org/D8174
2019-12-10Fix T70447: 'WholeCharacter' Keying set doesn't key None propertiesSybren A. Stüvel
The issue is that `something.path_resolve('"custom_property"')` raises a `ValueError` when the custom property is set to `None`. Since `None` cannot be stored in a keyframe anyway, the property is now silently skipped. Not having an explicit value is the closest we can get to `None`. This of course breaks when the value should be `None` in between not-`None` values, but I would consider that as a problem with the rig, and not something Blender can fix.
2019-08-09Cleanup: alternate fix for T66019Campbell Barton
Prefer triple quoting to avoid having to escape quotes.
2019-07-31FIx T66019: Text cutoffs for descriptions in keyframe insertion (keyingsets).Bastien Montagne
2018-10-19CTX_DATA_BEGIN for active object only (..._from_active_object)Dalai Felinto
For now only `selected_pose_bones_from_active_object`, more options can be added on demand. Discussed this with Campbell Barton. We may need this only for selected pose bones, time will tell.
2018-10-13Multi-Objects: POSELIB_OT_pose_addDalai Felinto
Make it work only for the active object bones
2018-09-05keyingsets_builtins: use keyword parametersSybren A. Stüvel
2018-07-03Cleanup: pep8Campbell Barton
2017-07-24Cleanup: trailing spaceCampbell Barton
2017-06-22Fix T51867: Insert Keyframe I - L / I - R / I - S key combos are broken.Bastien Montagne
Reorder keyingsets registration order, since it also afects order of I menu options, better show most used ones first, pure alphabetical order is not great here... Will likely break some muscle memory though. :| Based on D2720 by Carlo Andreacchio (@candreacchio), thanks.
2017-03-18PyAPI: remove bpy.utils.register_module()Campbell Barton
In preparation for it being removed, see: T47811
2016-09-28Fixes for pose library change 601ce6a89c4Sybren A. Stüvel
Apparently the keying sets system doesn't support subclassing KeyingSetInfo subclasses. I have added a note to the top of the file to indicate this to future developers.
2016-09-28POSELIB_OT_pose_add: only create keyframes for selected bones.Sybren A. Stüvel
Previously the pose library used the WholeCharacter key set, which ignores selection and add keys for almost all bones in the rig. This is a very slow operation on complex rigs. With this patch, only selected bones are keyed, defaulting to keying all bones when none are selected. Note that this fixes the FIXME previously mentioned in the source.
2016-08-01Cleanup: unused vars, imports, pep8Campbell Barton
2016-05-18Fix: "Whole Character" Keying Set should not include Location on bones with ↵Joshua Leung
"connected" joint
2016-05-17Bendy Bones: Advanced B-Bones for Easier + Simple RiggingJoshua Leung
This commit/patch/branch brings a bunch of powerful new options for B-Bones and for working with B-Bones, making it easier for animators to create their own rigs, using fewer bones (which also means hopefully lighter + faster rigs ;) This functionality was first demoed by Daniel at BConf15 Some highlights from this patch include: * You can now directly control the shape of B-Bones using a series of properties instead of being restricted to trying to indirectly control them through the neighbouring bones. See the "Bendy Bones" panel... * B-Bones can be shaped in EditMode to define a "curved rest pose" for the bone. This is useful for things like eyebrows and mouths/eyelids * You can now make B-Bones use custom bones as their reference bone handles, instead of only using the parent/child bones. To do so, enable the "Use Custom Reference Handles" toggle. If none are specified, then the BBone will only use the Bendy Bone properties. * Constraints Head/Tail option can now slide along the B-Bone shape, instead of just linearly interpolating between the endpoints of the bone. For more details, see: * http://aligorith.blogspot.co.nz/2016/05/bendy-bones-dev-update.html * http://aligorith.blogspot.co.nz/2016/05/an-in-depth-look-at-how-b-bones-work.html -- Credits -- Original Idea: Daniel M Lara (pepeland) Original Patch/Research: Jose Molina Additional Development + Polish: Joshua Leung (aligorith) Testing/Feedback: Daniel M Lara (pepeland), Juan Pablo Bouza (jpbouza)
2013-03-10More UI message i18n fixes and improvements...Bastien Montagne
Fix for keyingsets tips, and make them (and a few others) findable by i18n messages extracting code (for some reasons, their bl_rna.description are void???).
2012-12-23Adding Scale Visual keying (and de-duplicated part of the code returning ↵Bastien Montagne
visual values to key).
2012-10-08style cleanup: pep8Campbell Barton
2012-04-26don't have spaces in idnames, confuses py types:Campbell Barton
http://www.blender.org/documentation/blender_python_api_2_62_4/bpy.types.Whole%20Character.html
2012-03-09Tweaks for typos in the Keying Set descriptions commitJoshua Leung
2012-03-08Fixing several issues with keyingsets:Bastien Montagne
*Add a new idname to keyingsets, keeping name as label-only (using same string for both made lookup fail when using i18n other than english, as it tried to compare an untranslated static string id against a translated RNA name). Also adding a description string (can be helpful with custom keyingsets, imho). *Fixed a few other bugs related to that area (namely, you can’t deselect current keyingset from the shift-ctrl-alt-I popup menu, and insert/delete key ops were using a rather strange way to get chosen custom keyingset…). *Fixed UI code so that it always uses (RNA) enum, and simplified menu-creation code.
2012-02-08Correct mathutils documentation, also correct some python spelling errors ↵Campbell Barton
and add makefile target `check_spelling`
2011-12-02renaming BooleanProperty to BoolProperty (rna structs shouldnt affect scripters)Dalai Felinto
Talked with Brecht and Campbell and they both agreed that bpy.types should match bpy.props In the ideal world we would rename bpy.props to BooleanProperty. This would break scripts though. So we go for a compromise and at least have some consistency.
2011-10-21svn merge -r41171:41170 . --- fix coming nextCampbell Barton
2011-10-21Bugfix [#28967] Attempting to add a new pose to the Pose LibraryJoshua Leung
causes Blender 2.60 RC2 to crash This commit just rolls back part of r.40868, which was causing crashes when trying to treat id-property-groups as bpy.type.Property to access a special "rna_type" attribute added as part of said commit. The underlying Py-API voodoo here is far too evil (along with the myriad of ways of creating custom props) to work out an API fix for, but at least we don't get anymore crashes now. In tests here, this check even seems redundant!
2011-10-09fix for BUILTIN_KSI_WholeCharacter keying custom string/collection/group ↵Campbell Barton
properties
2011-10-08fix [#28821] Whole Character keying set ignores non animatable propertyflagCampbell Barton
2011-08-30minor edits, pep8 - also correct float -> double promotion for blf.Campbell Barton
2011-07-10fix for various python bugs and remove unused var.Campbell Barton
2011-04-21Bugfix [#27090] Available keying set fails in armature pose modeJoshua Leung
A change in the poll callback that Available KeyingSet used to use restricted its use to Object-mode only, while this could also be useful in Pose Mode (though it would only affect all channels there). Made this use a custom poll callback now that tests for whether the active object has an action. This does mean that if you select a bunch of objects with animation data, but the active object doesn't have it, then the keyingset will fail to fire, but that's been marked as a todo in the code.
2011-04-10minor pep8 edits, also added 'test_pep8' & 'test_cmake' to the GNUmakefile ↵Campbell Barton
for convenience.
2011-04-05"Bugfix" (i.e. feature request in disguise!) [#26772] Delta Scaling,Joshua Leung
Rotation and Location don't have Keying Sets Added Keying Sets for Delta Loc/Rot/Scale settings (aka dLoc/dRot). These settings could already be found in the Object properties, under the collapsed "Delta Transforms" panel. I've added these to the end of the Keying Sets list, since adding any earlier will end up breaking active Keying Set setting in older files. Besides, these settings aren't that frequently used either...
2011-03-21move script directories for internal blender scripts.Campbell Barton
ui/ --> startup/bl_ui op/ --> startup/bl_operators scripts/startup/ is now the only auto-loading script dir which gives some speedup for blender loading too. ~/.blender/2.56/scripts/startup works for auto-loading scripts too.