Skip to content

Commit

Permalink
minor fixes (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicSavichev committed Jan 9, 2024
1 parent 5647fba commit a6d338b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion _docs/build_all_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

_DIR = os.path.dirname(os.path.realpath(__file__))
def shell(cmd):
subprocess.check_call(cmd, shell=True, stdout=sys.stdout, stderr=subprocess.STDOUT, bufsize=1, universal_newlines=True)
subprocess.check_call(cmd, shell=False, stdout=sys.stdout, stderr=subprocess.STDOUT, bufsize=1, universal_newlines=True)

def main():
prevd = os.getcwd()
Expand Down
12 changes: 6 additions & 6 deletions prog/dagorInclude/scene/dag_occlusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class Occlusion
{
public:
Occlusion() : curView(), curProj(), curViewProj(), curViewPos(), cockpitAnim(){};
Occlusion() = default;
void init()
{
occ = OcclusionSystem::create();
Expand Down Expand Up @@ -282,14 +282,14 @@ class Occlusion
inline int getRasterizedQuadOccluders() const { return 0; }
#endif
protected:
mat44f curViewProj;
mat44f curView;
mat44f curProj;
vec3f curViewPos;
mat44f curViewProj = {};
mat44f curView = {};
mat44f curProj = {};
vec3f curViewPos = v_zero();
OcclusionSystem *occ = 0;
float cockpitDistance = 0;
CockpitReprojectionMode cockpitMode = COCKPIT_NO_REPROJECT;
mat44f cockpitAnim;
mat44f cockpitAnim = {};
int rasterizedBoxOccluders = 0, rasterizedQuadOccluders = 0, rasterizedTriOccluders = 0;
bool hasMergedOcclusion = false;
#if CAN_DEBUG_OCCLUSION
Expand Down
6 changes: 3 additions & 3 deletions prog/engine/anim/animFABRIKCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ void AnimV20::MultiChainFABRIKCtrl::process(IPureAnimStateHolder &st, real wt, G
{
chain_vec_tab_t &chain = chains.push_back();
dag::Span<chain_node_t> nodeIds = S.chainNodeIds(i);
for (int i = 1; i < nodeIds.size(); i++)
for (int j = 1; j < nodeIds.size(); j++)
{
add_bone(chain, tree.getNodeWposRel(nodeIds[i - 1]), tree.getNodeWposRel(nodeIds[i]));
// debug("add bone* %s - %s", tree.getNodeName(nodeIds[i-1]), tree.getNodeName(nodeIds[i]));
add_bone(chain, tree.getNodeWposRel(nodeIds[j - 1]), tree.getNodeWposRel(nodeIds[j]));
// debug("add bone* %s - %s", tree.getNodeName(nodeIds[j-1]), tree.getNodeName(nodeIds[j]));
}
mat44f &n0_wtm = tree.getNodeWtmRel(nodeIds.back());
add_last_bone_point(chain, n0_wtm.col3);
Expand Down
6 changes: 3 additions & 3 deletions prog/gameLibs/render/randomGrass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,11 @@ void RandomGrass::initWebTools()
{
GrassLayer *layer = layers[i];
int foundIdx = -1;
for (int i = 0; i < grassNameCount.size(); ++i)
for (int j = 0; j < grassNameCount.size(); ++j)
{
if (strcmp(grassNameCount[i].name, layer->info.resName.str()) == 0)
if (strcmp(grassNameCount[j].name, layer->info.resName.str()) == 0)
{
foundIdx = i;
foundIdx = j;
break;
}
}
Expand Down

0 comments on commit a6d338b

Please sign in to comment.