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
2018-10-11Merge branch 'master' into blender2.8Campbell Barton
2018-10-11Cleanup: style (pointers)Campbell Barton
2018-10-10Python GPU: Use PyC_AsArray_FAST in GPUVertBuf.fill_attribute.mano-wii
This allows you to use other types of sequences besides tuples.
2018-10-10Python GPU: Use PyC_AsArray_FAST when initing GPUIndexBuff.mano-wii
This allows you to use other types of sequences besides tuples.
2018-10-10Python API: add loop triangles access, remove tessfaces.Brecht Van Lommel
Loop triangles are tessellated triangles create from polygons, for renderers or exporters that need to match Blender's polygon tesselation exactly. These are a read-only runtime cache. Tessfaces are a legacy data structure from before Blender supported n-gons, and were already mostly removed from the C code. Details on porting code to loop triangles is in the release notes. Differential Revision: https://developer.blender.org/D3539
2018-10-09Python GPU: Update `shader.from_builtin` and `shader.code_from_builtin` ↵mano-wii
description.
2018-10-09GPU Python: Use string literals in `shader.from_builtin` and ↵mano-wii
`shader.code_from_builtin`. Also, the gpu.shader.builtin submodule becomes obsolete, so it has been removed.
2018-10-09Python API: new GPUShader.format_calc() methodJacques Lucke
Reviewers: mano-wii, fclem, campbellbarton Differential Revision: https://developer.blender.org/D3772
2018-10-09Fix misuse of Py_INCREF in module creation.mano-wii
Differential Revision: https://developer.blender.org/D3697
2018-10-09Cleanup: namingCampbell Barton
2018-10-08Cleanup: rename checks for Python struct stringsCampbell Barton
Using 'format' prefix made this read as if t was for string formatting. Use 'PyC_StructFmt' prefix instead since these values are compatible with formatting from Python's 'struct' module.
2018-10-07CPython: use format char utilities in idprop_py_apimano-wii
2018-10-07CPython: py_capi_utils: format char utilities do not need to be inline.mano-wii
2018-10-07CPython: py_capi_utils: use more descriptive names for format string utilities.mano-wii
2018-10-07Cleanup: styleCampbell Barton
2018-10-06Cleanup: use the naming convention in py_capi_utilsmano-wii
And use inline functions instead of preprocessor directives.
2018-10-06Cleanup: use new format string utilitymano-wii
2018-10-06py_capi_utils: add utilities for format string in `struct` module style syntax.mano-wii
2018-10-05GPU Python: optionally init the vertexformat in the vertexbuffer itself.mano-wii
2018-10-05GPU Python: use _PyArg_ParseTupleAndKeywordsFast.mano-wii
2018-10-05GPU Python: fix crash when calling `batch.draw` without passing a shader.mano-wii
2018-10-05Python API: new GPUVertFormat constructor and vbo.fill_attribute methodJacques Lucke
Reviewer: fclem Differential Revision: https://developer.blender.org/D3760
2018-10-05Cleanup: use PyModule_AddIntConstantmano-wii
2018-10-04GPU Python: rename methods "shader_from_builtin" and ↵mano-wii
"shader_code_from_builtin" to "from_builtin" and "code_from_builtin".
2018-10-04GPU Python: Fix assert in PySequence_Fast_GET_SIZEmano-wii
2018-10-04Cleanup: remove single backtick quotesCampbell Barton
This isn't valid RST.
2018-10-04Python GPU: GPUBatch and GPUShader refactor.mano-wii
The changes are: - The shader now is passed as a parameter of the batch `draw` method (batch.draw(shader)). Since the batch always has to set a shader before drawing; - The batch methods to specify a value to a uniform have been removed. Uniforms are parameters of the program (here called shader). If you change a uniform, it changes in all batchs that use the same program; - New methods were added to set uniforms by the shader; - The `batch.program_set_builtin` was removed. It is a duplicate of `program_set` but without a shader object. We need the shader object to configure the uniform; Differential Revision: https://developer.blender.org/D3752
2018-10-02Gizmo: support for gizmo-group propertiesCampbell Barton
This allows gizmo groups to store properties in the tool. This makes sense for gizmo options which only control gizmo display and don't control operator execution. Unlike similar kinds of properties, this isn't accessible via the gizmo-group-type instance. For now the it's only stored in the workspace tool as can be done for operator properties, so each instance doesn't have different settings which would be confusing from a user perspective and complicate access from the top-bar. Later we could add gizmo-group properties if needed.
2018-10-01GPY Python: program_use_begin and program_use_end.mano-wii
The user has to be encouraged to use the `program_set` or `program_set_builtin` before drawing. This avoids problem with gl_context.
2018-10-01Cleanup: styleCampbell Barton
2018-09-27Cleanup: remove unused DerivedMesh code.Sebastian Parborg
Differential Revision: https://developer.blender.org/D3736
2018-09-27Cleanup: warningsCampbell Barton
2018-09-27Python GPU module: Wrap GPUIndexBufmano-wii
Differential Revision D3714
2018-09-27Python GPU module: replace `PyArg_ParseTupleAndKeywords` by ↵mano-wii
`_PyArg_ParseTupleAndKeywordsFast` part of T47811 ("for faster argument parsing").
2018-09-26Merge branch 'master' into blender2.8Campbell Barton
2018-09-26Cleanup: redundant includeCampbell Barton
2018-09-24Remove unused filesmano-wii
2018-09-24BGL: Wrap glBlitFramebuffermano-wii
2018-09-21GPU Python API: matrix.load_projection_matrixmano-wii
If the `push_projection` and `pop_projection` functions already exist, there should naturally be a way to load a projection matrix.
2018-09-21Cleanup: styleCampbell Barton
2018-09-21Preserve the actively bound framebuffer after using gpu.offscreenDalai Felinto
Otherwise we cannot draw anything after drawing in the offscreen buffer
2018-09-20GPU Python API: shader.uniform_floatDalai Felinto
The existing alternative is to use a buffer and call uniform_vector_float which is overkill for such a simple operation.
2018-09-20Typo on pydoc for uniform_intDalai Felinto
2018-09-20gpu.batch module: keep shader reference in batch.mano-wii
2018-09-20gpu.shader module: Do not free builtin shaders.mano-wii
2018-09-20gpu.shader.builtin module: Add GPU_SHADER_2D_IMAGE.mano-wii
2018-09-20Missing from last commitCampbell Barton
2018-09-20PyAPI: correct term for class property warningCampbell Barton
2018-09-19Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-19Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3700