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
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Animation, move AnimData API to `anim_data.c`/`BKE_anim_data.h`Sybren A. Stüvel
The `BKE_animsys.h` and `anim_sys.c` files already had a an "AnimData API" section. The code in that section has now been split off, and placed into `BKE_anim_data.h` and `anim_data.c`. All files that used to include `BKE_animsys.h` have been adjusted to only include the animation headers they need (sometimes none). No functional changes.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-13Cleanup: pass const args (mostly Scene & RenderData)Campbell Barton
2020-03-09Cleanup: Move `BKE_animdata_free()` call out of each IDType free data.Bastien Montagne
This has been long standing TODO... Note that remaining usages of BKE_xxx_delete should all be carefully checked for and utilmately nuked in favor of `BKE_id_delete()`, think we still have quiet a few bugs hidden in those (code seems to usually assume those functions do a full ID deletion, which is not the case).
2020-03-06Cleanup: move camera, lights, world to IDTypeInfoBrecht Van Lommel
2020-03-04Refactor ID make local to use a single flag parameter.Bastien Montagne
Instead of using anonymous booleans flags, also allows to keep the same behavior in all cases, without needing special handling from calling code for our beloved oddballs object proxies...
2020-03-04Cleanup: ID make local: remove `id_in_bmain` argument.Bastien Montagne
This info is now stored in ID tags themselves, so no need to pass an extra anonymous boolean parameter around, yay!
2020-03-04Cleanup: Rename 'make local' functions to new scheme.Bastien Montagne
Also removed some only used locally from the header, `BKE_lib_id.h` is already way too big, no need to overload it with unused things.
2020-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
Note that `BKE_library.h`/`library.c` were renamed to `BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here. Part of T72604.
2019-09-11DNA: defaults for ID typesCampbell Barton
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-05-20Camera: change default f-stop from 5.6 to 2.8Brecht Van Lommel
This gives a more noticeable effect by default. Also fixes startup.blend not having focus distance initialized correctly.
2019-05-17Cycles/Eevee: unify depth of field settings for camerasJeroen Bakker
There is now a checkbox to enable/disable depth of field per camera. For Eevee this replace the scene level setting. For Cycles there is now only an F-Stop value, no longer a Radius. Existing files are converted based on Cycles or Eevee being set in the scene. Differential Revision: https://developer.blender.org/D4882
2019-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-22Cleanup: style, use braces for blenkernelCampbell 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-03-26Fix T62952: remove lamp as camera using the lamp clip start/end.Brecht Van Lommel
Eevee and Cycles don't use these clipping distances the same as Blender Internal did, or at all in most cases. Just remove this since it makes no sense anymore.
2019-03-26Fix T62957: Camera frame returns zerosCampbell Barton
2019-03-22Camera: change how the minimum near clip depth is setCampbell Barton
do_clip wasn't working for its intended purpose, replace with a simpler method.
2019-03-22RNA: Camera.view_frame no longer uses near clip for the camera frameCampbell Barton
Use the same values used for drawing.
2019-03-12Cleanup: BLI_utildefines struct macrosCampbell Barton
Use the term "AFTER" instead of "OFS" since it wasn't obvious these macros operate on everything after the struct member passed. Avoid casting to non-const types when only reading.
2019-02-27Cleanup: file rename lamp -> lightCampbell Barton
2019-02-27Cleanup: rename lamp -> lightCampbell Barton
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-18Correct own mistake in near/far cleanupCampbell Barton
Error in 2f737c4f475a5
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-16DNA: rename near/far -> clip_start/clip_endCampbell Barton
Rename for Camera, View3D (also CameraParams & Render not DNA)
2019-02-16DNA: rename camera YF_dofdist -> dof_distanceCampbell Barton
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-05Cleanup: typo in comment.Bastien Montagne
2019-02-05Cleanup: replace BKE_id_copy_ex by BKE_id_copy where possible.Bastien Montagne
That way it is obvious when we are using default ID copy behaviour, and when we are using advanced/specialized ones.
2019-02-05Cleanup: BKE_library: rename id_copy to BKE_id_copy.Bastien Montagne
Time to follow conventions for that one as well.
2019-02-05Cleanup: BKE_library: remove 'test' param of id_copy.Bastien Montagne
This was used in *one* place only... much better to have a dedicated helper for that kind of things. ;)
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-17Fix T60558: Cycles viewport render mismatch when the camera is a light.Brecht Van Lommel
2019-01-12Viewport: Stereoscopy drawing is backDalai Felinto
The viewport stereoscopy support helpers are finally ported to 2.80. We now can scale the camera and the "stereo cameras" will scale in the viewport as well (unlike 2.7x). At the moment I disabled the drawing of the camera frame when stereo is selected and you are looking through the camera. It is to be fixed later, but for now it draws the border wrong. In 2.79 this was not a problem because the camera frame was drawn afterwards as a hack. Viewport > Stereoscopy: * Cameras * Convergence plane * Convergence plane alpha * Stereoscopy volume * Stereoscopy volume alpha
2019-01-12BKE_camera_multiview_model_matrix: Add _scaled versionDalai Felinto
For drawing it is useful to have the non-normalized version of the matrix. So we can scale up the cameras drawing accordingly.
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-12-11DNA: version patch Camera.drawsize to twice it's valueCampbell Barton
Draw size represented half the actual size used.
2018-12-11Merge branch 'master' into blender2.8Campbell Barton
2018-12-11Fix T52051: Orthographic camera display size errorCampbell Barton
It was impractical to create a small orthographic camera with a usable size in the view-port. No longer scale the draw-size by ortho-size.
2018-10-17Cleanup: remove some #if 0 blocksJacques Lucke
Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D3802
2018-08-15Cleanup: remove unused R_ORTHO / R_PANORAMA flags.Brecht Van Lommel
2018-08-08Cleanup unused arg warning.Bastien Montagne
2018-08-08Fix T56273: User count assert on re-saving a particular file.Bastien Montagne
new background image/clip of Camera ID was totally wrong, down the old, broken 'way it used to be' instead of using new, more generic system. Those ID pointers were not even added to library_query.c file, shame! xD
2018-07-27RNA: Set default for Camera propertiesClément Foucault
Change the default clipend value to match the viewport (1000.0f)
2018-07-24Fix T55754: DOF with new Camera is not workingClément Foucault
Was due to non initialized gpu_dof.ratio